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

yuqing xia yuqing.xia at colorado.edu
Sun Apr 27 00:44:36 CDT 2014


It make sense now.  Thanks Jed.


On Sat, Apr 26, 2014 at 11:36 PM, Jed Brown <jed at jedbrown.org> wrote:

> yuqing xia <yuqing.xia at colorado.edu> writes:
>
> > 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
>
> These are (column_index, matrix_entry) pairs.
>
> > 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/ac0bdb3d/attachment.html>


More information about the petsc-users mailing list