Re: [petsc-users] petsc4py with complex numbers?

2016-09-26 Thread Aurelien Ponte
The output is: I installed petsc via macport and wrongly assumed complex number support would have been default. I've just reinstalled petsc with it and it seems to be working. thanks Lisandro ! aurelien Le 25/09/16 à 23:00, Lisandro Dalcin a écrit : Are you sure you built petsc4py with

Re: [petsc-users] petsc4py with complex numbers?

2016-09-25 Thread Lisandro Dalcin
Are you sure you built petsc4py with a PETSc build with complex scalars? Whats the output of "print(PETSc.ScalarType)" ? On 26 September 2016 at 07:47, Aurelien Ponte wrote: > Hi, > > I am trying to solve a linear problem whose operator has complex > coefficients via petsc4py > but keep runnin

[petsc-users] petsc4py with complex numbers?

2016-09-25 Thread Aurelien Ponte
Hi, I am trying to solve a linear problem whose operator has complex coefficients via petsc4py but keep running into the following error: File "/Users/aponte/Current_projects/people/kraig_marine/wd_response/solver/set_L.py", line 52, in set_L L.setValueStencil(row, col, value) File