I have configured Petsc to have the scalar type comlpex. It compliles and
runs but the resulting imaginary part is always 0.

i am just trying to do
PetscScalar a = 1.+PETSC_i;
printf("%G\n",PetscImaginaryPart(a));
but i get 0.

Reply via email to