<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, Dec 2, 2018 at 8:12 PM Maahi Talukder via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello All,<div><br></div><div>I have created parallel matrix using MatGetOwnershipRange and MatSetValues.  Now when I want to  run the program with the command ' mpiexec -n  x ./Petsctest1' , if x <3, then the program runs just fine. But if x > 3 , then it shows me the following error message -</div></div></div></div></div></div></blockquote><div><br></div><div>It sounds like you are running in optimized mode and gave bogus (row, col) values. Run using debugging, and preferably</div><div>run under valgrind.</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>[0]PETSC ERROR: Caught signal number 15 Terminate: Some process (or the batch system) has told this process to end</div><div>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>[0]PETSC ERROR: or try <a href="http://valgrind.org" target="_blank">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div><div>[0]PETSC ERROR: likely location of problem given in stack below</div><div>[0]PETSC ERROR: ---------------------  Stack Frames ------------------------------------</div><div>[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div><div>[0]PETSC ERROR:       INSTEAD the line number of the start of the function</div><div>[0]PETSC ERROR:       is given.</div><div>[0]PETSC ERROR: [0] PetscMemcpy line 1947 /home/maahi/petsc/include/petscsys.h</div><div>[0]PETSC ERROR: [0] MatSetValues_SeqAIJ line 427 /home/maahi/petsc/src/mat/impls/aij/seq/aij.c</div><div>[0]PETSC ERROR: [0] MatSetValues line 1316 /home/maahi/petsc/src/mat/interface/matrix.c</div></div><div><br></div><div>So depending on the number of processors I give, the error message shows up or not. Could you please shed some light on that ? </div><div><br></div><div>Regards,</div><div>Maahi Talukder</div><div>MSc Student</div><div>Clarkson University </div><div><br></div><div><br></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>