Indeed you do need to use c++ to build PETSc in this case since the C and C++ complex types are not related to each other.
-Ben On 9/3/10 10:28 AM, "Jan Biermann" <[email protected]> wrote: > I have a question regarding the linking to petsc. I have a working petsc > installation that I configure with ./config/configure.py > --download-mpich=1\ --with-debugging=1 \ > --with-scalar-type=complex\ --with-fc=0\ > --download-c-blas-lapack=1\ > --with-mpi-compilers=0 If I want to use libmesh with this > Petsc version I get the error messages like this during compilation: > petsc_matrix.C:199: error: cannot convert Œstd::complex<double>¹ > to Œdouble __complex__¹ for argument Œ4¹ to ŒPetscErrorCode > MatZeroRows(_p_Mat*, PetscInt, const PetscInt*, double __complex__)¹ > include/utils/compare_types.h:185: error: template argument 2 is > invalid include/utils/compare_types.h:185: error: wrong number of > template arguments (1, should be 2) > include/utils/compare_types.h:103: error: provided for > Œtemplate<class S, class T> struct CompareTypes¹ so > do I have to configure petsc with --with-clanguage=c++ etc. or is > there any other way to make it work? Thanks, > Jan ------------------------------------------------------------------------ > ------ This SF.net Dev2Dev email is sponsored by: Show off your parallel > programming skills. Enter the Intel(R) Threading Challenge > 2010. http://p.sf.net/sfu/intel-thread-sfd ___________________________________ > ____________ Libmesh-users mailing > list [email protected] https://lists.sourceforge.net/lists/l > istinfo/libmesh-users ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
