Dear deal.ii developers and users I am trying to compile deal.ii 6.2.1 with petsc 3.0.0-p8 and slepc-3.0.0-p5 on a Debian system using Openmpi (1.3.3-1). I intend to finally install a similar config on a cluster; hence, I need to compile from source.
I need to run deal.ii with complex numbers enabled for petsc. My petsc config is ./config/configure.py --with-cc=mpicc --with-cxx=mpiCC --with-fc=mpif90 --with-clanguage=C++ --with-shared=1 --with-dynamic=1 --with-scalar-type=complex --with-x=0 I get a whole lot of errors, the essence of which are the following. I believe that the errors have something to do with complex numbers being enabled. This is because I am able to compile everything smoothly if I use --with-scalar-type=real in the petsc config. I have looked at http://www.mail-archive.com/[email protected]/msg00513.html, but do not seem to locate any solution to my problem. ============================================================================================================================= /usr/local/deal.II_cmplx2/lac/include/lac/petsc_matrix_base.h: In member function ‘void dealii::PETScWrappers::MatrixBase::set(unsigned int, unsigned int, const unsigned int*, const PetscScalar*, bool)’: /usr/local/deal.II_cmplx2/lac/include/lac/petsc_matrix_base.h:1459: error: cannot convert ‘const std::complex<double>’ to ‘const double’ in initialization /usr/local/deal.II_cmplx2/lac/include/lac/petsc_matrix_base.h: In member function ‘void dealii::PETScWrappers::MatrixBase::add(unsigned int, unsigned int, PetscScalar)’: /usr/local/deal.II_cmplx2/lac/include/lac/petsc_matrix_base.h:1495: error: no match for ‘operator==’ in ‘value == 0’ /usr/local/deal.II_cmplx2/lac/include/lac/petsc_matrix_base.h: In member function ‘void dealii::PETScWrappers::MatrixBase::add(unsigned int, unsigned int, const unsigned int*, const PetscScalar*, bool, bool)’: /usr/local/deal.II_cmplx2/lac/include/lac/petsc_matrix_base.h:1627: error: cannot convert ‘const std::complex<double>’ to ‘const double’ in initialization In file included from /usr/local/deal.II_cmplx2/lac/include/lac/petsc_vector.h:19, from /usr/local/deal.II_cmplx2/lac/include/lac/petsc_block_vector.h:18, from /usr/local/deal.II_cmplx2/lac/include/lac/petsc_block_sparse_matrix.h:21, from /usr/local/deal.II_cmplx2/lac/include/lac/constraint_matrix.templates.h:25, from source/constraint_matrix.cc:16: /usr/local/deal.II_cmplx2/lac/include/lac/petsc_vector_base.h: In member function ‘const dealii::PETScWrappers::internal::VectorReference& dealii::PETScWrappers::internal::VectorReference::operator+=(const PetscScalar&) const’: /usr/local/deal.II_cmplx2/lac/include/lac/petsc_vector_base.h:838: error: no match for ‘operator==’ in ‘value == 0’ /usr/local/deal.II_cmplx2/lac/include/lac/petsc_vector_base.h: In member function ‘const dealii::PETScWrappers::internal::VectorReference& dealii::PETScWrappers::internal::VectorReference::operator-=(const PetscScalar&) const’: /usr/local/deal.II_cmplx2/lac/include/lac/petsc_vector_base.h:876: error: no match for ‘operator==’ in ‘value == 0’ /usr/local/deal.II_cmplx2/lac/include/lac/constraint_matrix.templates.h: In member function ‘void dealii::ConstraintMatrix::condense(VectorType&) const [with VectorType = dealii::PETScWrappers::Vector]’: ========================================================================================================================== I hope someone can throw some light on this issue. Thank you Best Regards Arvind Ajoy Dept of Electrical Engineering Indian Institute of Technology Madras
_______________________________________________ dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii
