<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> These giant sizes are sometime an indication of integer overflow. Did you previously build PETSc with the --with-64-bit-indices ? Are you sure the d_nnz and o_nnz arguments are correct and not too large?<div class=""><br class=""></div><div class=""> Barry</div><div class=""><br class=""><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 14, 2021, at 4:13 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">On Thu, Jan 14, 2021 at 4:38 PM Qin Lu <<a href="mailto:lu_qin_2000@yahoo.com" class="">lu_qin_2000@yahoo.com</a>> wrote:<br class=""></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 class="">
Hi Matthew,<div class=""><br class=""></div><div class="">Thanks for your response! Does CHKERRQ work for FORTRAN-90?</div></div></blockquote><div class=""><br class=""></div><div class="">Yes, see the examples.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="">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 class=""><br class=""></div><div class="">Yes, the sizes passed are too large.</div><div class=""><br class=""></div><div class=""> Thanks,</div><div class=""><br class=""></div><div class=""> Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="">Thanks,</div><div class="">Qin</div><div class=""><br class=""></div><div class="">==== error messages =====</div><div class=""><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: Out of memory. This could be due to allocating</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: too large an object or bleeding by not properly</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: destroying unneeded objects.</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: Memory allocated 0 Memory used by process <a href="tel:2049617920" dir="ltr" style="text-decoration:underline" target="_blank" class="">2049617920</a></span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: Try running with -malloc_dump or -malloc_view for info.</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: Memory requested 18446744073458206720</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[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" class="">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</span></p><p style="overflow-wrap: break-word;" class=""><span style="background-color:rgba(255,255,255,0)" class="">[2]PETSC ERROR: Petsc Release Version 3.12.5, Mar, 29, 2020</span></p><br class=""><br class=""><a href="https://overview.mail.yahoo.com/?.src=iOS" target="_blank" class="">Sent from Yahoo Mail for iPhone</a><br class=""><br class=""><p style="font-size:15px;color:rgb(113,95,250);padding-top:15px;margin-top:0px" class="">On Thursday, January 14, 2021, 2:30 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank" class="">knepley@gmail.com</a>> wrote:</p><blockquote class=""><div id="gmail-m_-6588212407959388715yiv3795398373" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class="">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" class="">petsc-users@mcs.anl.gov</a>> wrote:<br clear="none" class=""></div><div class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class=""><div class="">
Hello,<div class=""><br clear="none" class=""></div><div class="">My program got error 55 from calling <span class="">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 class=""><br clear="none" class=""></div><div class="">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 class=""><br clear="none" class=""></div><div class="">2) Your error code is here:</div><div class=""><br clear="none" class=""></div><div class=""> <a rel="nofollow noopener noreferrer" shape="rect" href="https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17" target="_blank" class="">https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17</a></div><div class=""><br clear="none" class=""></div><div class="">3) It is a memory error. You asked for more memory than your machine could allocate.</div><div class=""><br clear="none" class=""></div><div class=""> Thanks,</div><div class=""><br clear="none" class=""></div><div class=""> Matt</div><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd05748" class=""><div class=""> </div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class=""><div class=""><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd69522" class=""><div class=""><span class="">Thanks in advance for your help. </span></div><div class=""><span class=""><br clear="none" class=""></span></div><div class=""><span class="">Regards,</span></div><div class=""><span class="">Qin</span></div></div>
</div></blockquote></div><br clear="all" class=""><div class=""><br clear="none" class=""></div>-- <br clear="none" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">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" class="">-- Norbert Wiener</div><div class=""><br clear="none" class=""></div><div class=""><a rel="nofollow noopener noreferrer" shape="rect" href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd16347" class=""><br clear="none" class=""></div></div></div></div></div></div></div></div></div><div id="gmail-m_-6588212407959388715yiv3795398373yqtfd88236" class="">
</div></div></div><blockquote class=""></blockquote></blockquote></div>
</div></blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div><div class=""><br class=""></div><div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></div></div></body></html>