[petsc-users] Complex examples with PETSc?

Barry Smith bsmith at mcs.anl.gov
Thu Jun 12 16:02:48 CDT 2014


  Jay,

   You need to ./configure PETSc with —with-scalar-type=complex  (yes sadly you cannot mix some real vectors/matrices in the same PETSc program as some complex ones).  Then proceed as usual. PetscScalar is of type complex double and PetscReal of double. 

   No examples of solving Schrodinger's equation around, sorry. 

   Barry



On Jun 12, 2014, at 7:45 AM, Jay J. Billings <billingsjj at ornl.gov> wrote:

> Everyone,
> 
> What's the best example of solving a Complex problem with PETSc? Are there any examples of solving Schrodinger's equation around?
> 
> Thanks,
> Jay
> 
> -- 
> Jay Jay Billings
> Oak Ridge National Laboratory
> Twitter Handle: @jayjaybillings
> 



More information about the petsc-users mailing list