<div dir="ltr"><div dir="ltr">On Thu, Jan 14, 2021 at 11:58 AM Qin Lu via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</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>
Hello,<div><br></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></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></div><div>2) Your error code is here:</div><div><br></div><div> <a href="https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17">https://gitlab.com/petsc/petsc/-/blob/v3.12.5/include/petscerror.h#L17</a></div><div><br></div><div>3) It is a memory error. You asked for more memory than your machine could allocate.</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><span>Thanks in advance for your help. </span></div><div><span><br></span></div><div><span>Regards,</span></div><div><span>Qin</span></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>