[petsc-users] Complex examples with PETSc?

2014-06-12 Thread Jay J. Billings
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

Re: [petsc-users] Complex examples with PETSc?

2014-06-12 Thread Barry Smith
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