[petsc-users] [splec-3.2] cannot convert ‘std::complex<double>’ to ‘PetscReal’ in assignment

Barry Smith bsmith at mcs.anl.gov
Fri Oct 28 21:07:43 CDT 2011


  This appears to be a question suitable for slepc-maint not petsc-users


On Oct 28, 2011, at 5:50 PM, Kyunghoon Lee wrote:

> Hi, 
> 
> I got the following error for slepc-3.2-p0
> 
> ks-slice.c: In function ‘PetscErrorCode EPSKrylovSchur_Slice(_p_EPS*)’:
> ks-slice.c:244: error: cannot convert ‘std::complex<double>’ to ‘PetscReal’ in assignment
> ks-slice.c:257: error: cannot convert ‘std::complex<double>’ to ‘PetscReal’ in assignment
> ks-slice.c:316: error: cannot convert ‘std::complex<double>’ to ‘PetscReal’ in assignment
> 
> I compiled petsc-3.2 with the following options:
> 
> Using PETSc configure options: --prefix=/Users/aeronova/Development/local/lib64/petsc/petsc-3.2-p4 --download-mpich=1 --download-blacs=1 --download-parmetis=1 --download-scalapack=1 --download-mumps=1 --download-umfpack=1 --with-scalar-type=complex --with-clanguage=C++ --with-fc=g95
> Using SLEPc
> 
> I hope someone can help me with this error.
> 
> Regards,
> K. Lee.



More information about the petsc-users mailing list