<div dir="ltr"><div dir="ltr">On Thu, Jan 14, 2021 at 4:38 PM Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com">lu_qin_2000@yahoo.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
Hi Matthew,<div><br></div><div>Thanks for your response! Does CHKERRQ work for FORTRAN-90?</div></div></blockquote><div><br></div><div>Yes, see the examples.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>I linked my program with debug version of Petsc lib and got more error messages as attached below. I only used 8 processes, but the message said a big number, as well as a huge memory size, which must be wrong since the problem size is not very big. Does this mean the non-zero sizes passed to the subroutine are not correct?</div></div></blockquote><div><br></div><div>Yes, the sizes passed are too large.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Thanks,</div><div>Qin</div><div><br></div><div>==== error messages =====</div><div><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: Out of memory. This could be due to allocating</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: too large an object or bleeding by not properly</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: destroying unneeded objects.</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: Memory allocated 0 Memory used by process <a href="tel:2049617920" dir="ltr" style="text-decoration:underline" target="_blank">2049617920</a></span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: Try running with -malloc_dump or -malloc_view for info.</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: Memory requested 18446744073458206720</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: See <a rel="nofollow noopener noreferrer" href="https://www.mcs.anl.gov/petsc/documentation/faq.html" style="text-decoration:underline" target="_blank">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</span></p><p style="overflow-wrap: break-word;"><span style="background-color:rgba(255,255,255,0)">[2]PETSC ERROR: Petsc Release Version 3.12.5, Mar, 29, 2020</span></p><br><br><a href="https://overview.mail.yahoo.com/?.src=iOS" target="_blank">Sent from Yahoo Mail for iPhone</a><br><br><p style="font-size:15px;color:rgb(113,95,250);padding-top:15px;margin-top:0px">On Thursday, January 14, 2021, 2:30 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:</p><blockquote><div id="gmail-m_-6588212407959388715yiv3795398373"><div><div dir="ltr"><div dir="ltr">On Thu, Jan 14, 2021 at 11:58 AM Qin Lu via petsc-users <<a rel="nofollow noopener noreferrer" shape="rect" href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br clear="none"></div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
Hello,<div><br clear="none"></div><div>My program got error 55 from calling <span>MatMPIAIJSetPreallocation with Petsc version 3.12.5, what does this error mean? Interestingly, the same program using an older version 3.4.2 works fine. I did make necessary interface change in my program when I upgraded to 3.12.5. </span></div></div></blockquote><div><br clear="none"></div><div>1) You should always call CHKERRQ(ierr) after a Petsc call. Then you will get the full error message and stack to send in.</div><div><br clear="none"></div><div>2) Your error code is here:</div><div><br clear="none"></div><div> <a rel="nofollow noopener noreferrer" shape="rect" href="https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17" target="_blank">https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17</a></div><div><br clear="none"></div><div>3) It is a memory error. You asked for more memory than your machine could allocate.</div><div><br clear="none"></div><div> Thanks,</div><div><br clear="none"></div><div> Matt</div><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd05748"><div> </div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd69522"><div><span>Thanks in advance for your help. </span></div><div><span><br clear="none"></span></div><div><span>Regards,</span></div><div><span>Qin</span></div></div>
</div></blockquote></div><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div dir="ltr"><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 clear="none">-- Norbert Wiener</div><div><br clear="none"></div><div><a rel="nofollow noopener noreferrer" shape="rect" href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd16347"><br clear="none"></div></div></div></div></div></div></div></div></div><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd88236">
</div></div></div><blockquote></blockquote></blockquote></div>
</div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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>