[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

Re: [petsc-users] How to solve the pressure possion equations with four neuman bc

2016-09-25 Thread Matthew Knepley
On Sun, Sep 25, 2016 at 4:06 AM, 丁老师 wrote: > Dear professor: > In the ksp example ex50.c, i do not understand the meaning of > *KSPSolve* > > *(ksp,NULL,NULL);* > > *

Re: [petsc-users] DMPlex problem

2016-09-25 Thread Morten Nobel-Jørgensen
Hi Matthew Thank you for the bug-fix :) I can confirm that it works :) And thanks for your hard work on PETSc - your work is very much appreciated! Kind regards, Morten From: Matthew Knepley [knep...@gmail.com] Sent: Friday, September 23, 2016 2:46 PM To: Morten

Re: [petsc-users] How to solve the pressure possion equations with four neuman bc

2016-09-25 Thread 丁老师
Dear professor: In the ksp example ex50.c, i do not understand the meaning of KSPSolve(ksp,NULL,NULL); nMatNullSpaceCreate(PETSC_COMM_WORLD,PETSC_TRUE,0,0,); What is the meaning of NULL in the kspsolve. and two "0" in the MatNullSpaceCreate. Regards At 2016-09-24

Re: [petsc-users] Write binary to matrix

2016-09-25 Thread Florian Lindner
Great! Thanks to you! Am 23.09.2016 um 17:56 schrieb Hong: > Florian: > I pushed a fix in branch hzhang/fix_matview_mpisbaij (off petsc-maint) > https://bitbucket.org/petsc/petsc/commits/d1654148bc9f02cde4d336bb9518a18cfb35148e > > After it is tested in our regression tests, it will be merged to