[petsc-users] how to pass complex scalar in command line

Hui Zhang mike.hui.zhang at hotmail.com
Thu Feb 23 03:31:51 CST 2012


I know PetscOptionsGetScalar(), but do not know how to write the complex number
in command line. I tried to write it in some forms but all did not work.

Say, the options is -acomplex.  I tried 
-acomplex 1.0+1.0i, or
-acomplex 1.0+1.0*i, or
-acomplex 1.0+1.0*I
...
no one works.  

thank you,
Hui


More information about the petsc-users mailing list