<div dir="ltr">Try to use Valgrind to detect memory errors?<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 5, 2024 at 3:29 AM TAY Wee Beng <<a href="mailto:zonexo@gmail.com">zonexo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have a code which uses PETSc and it was working fine. However, I <br>
haven't used the code for a while and now we've migrated to a new cray <br>
cluster so the compilers have been updated. I'm using gnu fortran.<br>
<br>
When running the code now, I got the error:<br>
<br>
Error termination. Backtrace:<br>
At line 294 of file <br>
/home/users/nus/tsltaywb/myprojects/ibm2d_high_Re_staggered_coef/PETSc_solvers.F90<br>
Fortran runtime error: Index '-17591876251192' of dimension 1 of array <br>
'ppv' below lower bound of 1<br>
<br>
I have attached my makefile. Wonder what I should change to prevent the <br>
above error.<br>
<br>
Compiler should be v11.2<br>
<br>
-- <br>
Thank you very much.<br>
<br>
Yours sincerely,<br>
<br>
================================================<br>
TAY Wee-Beng 郑伟明 (Zheng Weiming)<br>
================================================<br>
<br>
</blockquote></div>