[petsc-users] About compatibility with C++ complex type

yuqing xia yuqing.xia at colorado.edu
Sat Apr 26 20:48:04 CDT 2014


Dear Developer and Users

 I am new to SLEPC. So my PETSC is compiled with flag
--with-scalar-type=complex --with-clanguage=c++, therefore SLEPC should
also support c++ complex type. But when I tried to insert C++ complex type
value into a PETSC complex matrix, It seems SLEPC's inside complex type is
not compatible with C++ complex type according to the test result.

Here is the matrix I want to insert their value to Petsc matrix
(-0.131541,0)(0,0)(0,0)
(0,0)(-0.188541,0)(0,0)
(0,0)(0,0)(-0.245541,0)
Here is the Petsc matrix after inserting the above matrix value into it
Matrix Object: 1 MPI processes
type: seqaij
row 0: (0, -0.131541)  (1, 0)  (2, 0)
row 1: (0, 0)  (1, -0.188541)  (2, 0)
row 2: (0, 0)  (1, 0)  (2, -0.24554

Does anyone know how to avoid the problem.

Best
Yuqing Xia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140426/7c7251f9/attachment.html>


More information about the petsc-users mailing list