Re: [petsc-users] Various Questions Regarding PETSC

2019-07-20 Thread Smith, Barry F. via petsc-users
> On Jul 20, 2019, at 9:58 PM, Mohammed Mostafa > wrote: > > Hello Barry, > > > In runs did you zero the matrix before call the MatSetValues() initially? > > > I only zero the matrix when using add_values insert mode but otherwise I > don’t Is there any reason to use ADD_VALUES? Since

Re: [petsc-users] Different behavior of code on different machines

2019-07-20 Thread Zhang, Junchao via petsc-users
Did you used the same number of MPI ranks, same build options on your pc and on cluster? If not, you can try to align options on your pc with those on your cluster to see if you can reproduce the error on your pc. You can also try valgrind to see if there are memory errors like use of uninitiali

Re: [petsc-users] Different behavior of code on different machines

2019-07-20 Thread Zhang, Junchao via petsc-users
You need to test on your personal computer with multiple MPI processes (e.g., mpirun -n 2 ...) before moving to big machines. You may also need to configure petsc with --with-dedugging=1 --COPTFLAGS="-O0 -g" etc to ease debugging. --Junchao Zhang On Sat, Jul 20, 2019 at 11:03 AM Yuyun Yang via

[petsc-users] Different behavior of code on different machines

2019-07-20 Thread Yuyun Yang via petsc-users
Hello team, I'm encountering a problem with my code's behavior on multiple processors. When I run it on my personal computer it works just fine, but when I use it on our computing cluster it produces an error (in one of the root-finding functions, an assert statement is not satisfied) and abort

Re: [petsc-users] VecGhostRestoreLocalForm

2019-07-20 Thread Zhang, Junchao via petsc-users
On Sat, Jul 20, 2019 at 5:47 AM José Lorenzo via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hello, I am not sure I understand the function VecGhostRestoreLocalForm. If I proceed as stated in the manual, VecGhostUpdateBegin