how to pass complex scalar in command line
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
El 23/02/2012, a las 10:31, Hui Zhang escribió:
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
-acomplex 1,1 Read the manpage http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptions... Jose
Ah.. thank you! I read it before but I forgot. On Feb 23, 2012, at 10:36 AM, Jose E. Roman wrote:
El 23/02/2012, a las 10:31, Hui Zhang escribió:
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
-acomplex 1,1
Read the manpage http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptions...
Jose
participants (2)
-
Hui Zhang -
Jose E. Roman