> Long before these errors occur, I am getting the messages below which,
> as I understand it, mean that dealii no longer knows what a
> PETScScalar is. I am finding this hard to track down, but I am sure it
> is the first thing to fix.

You need to compile PETSc with C++ support enabled, or this won't work. This 
file switches between the C and C++ ways to use complex numbers, which is 
what this piece of code in petscmath.h does:
--------------------
#if defined(PETSC_USE_COMPLEX)
#if defined(PETSC_CLANGUAGE_CXX)
/*
   C++ support of complex numbers: Original support
*/
#include <complex>

#if defined(PETSC_USE_SINGLE)
typedef std::complex<float> PetscScalar;
#elif defined(PETSC_USE_LONG_DOUBLE)
typedef std::complex<long double> PetscScalar;
#elif defined(PETSC_USE_INT)
typedef std::complex<int> PetscScalar;
#else
typedef std::complex<double> PetscScalar;
#endif
#else

#include <complex.h>
typedef double complex PetscScalar;

#endif

W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [email protected]
                                 www: http://www.math.tamu.edu/~bangerth/

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to