Re: [petsc-users] questions regarding simple petsc matrix vector operation

2019-04-24 Thread Zhang, Junchao via petsc-users
How many MPI ranks do you use? The following line is suspicious. I guess you do not want a vector of global length 1. 66 VecSetSizes(b,PETSC_DECIDE,1); --Junchao Zhang On Wed, Apr 24, 2019 at 4:14 PM Karl Lin via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hi, there I have been try

Re: [petsc-users] questions regarding simple petsc matrix vector operation

2019-04-24 Thread Smith, Barry F. via petsc-users
I ran your problem fine on one process. no errors. Suggest you run under valgrind on your system: https://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind or if that is not useful Run in the debugger with the option -start_in_debugger noxterm Good luck, Barry > On Apr 24,

Re: [petsc-users] questions regarding simple petsc matrix vector operation

2019-04-25 Thread Smith, Barry F. via petsc-users
Thanks for letting us know. The latest PETSc release automatically detects this issue at ./configure time. You might consider upgrading just to get the most stable software as we keep improving PETSc. Barry > On Apr 25, 2019, at 9:35 AM, Karl Lin wrote: > > Thanks for tip, I figured

Re: [petsc-users] questions regarding simple petsc matrix vector operation

2019-04-25 Thread Karl Lin via petsc-users
Sure thank you. On Thu, Apr 25, 2019 at 10:32 AM Smith, Barry F. wrote: > >Thanks for letting us know. The latest PETSc release automatically > detects this issue at ./configure time. You might consider upgrading just > to get the most stable software as we keep improving PETSc. > >Barry