Try to use Valgrind to detect memory errors? --Junchao Zhang
On Mon, Feb 5, 2024 at 3:29 AM TAY Wee Beng <[email protected]> wrote: > Hi, > > I have a code which uses PETSc and it was working fine. However, I > haven't used the code for a while and now we've migrated to a new cray > cluster so the compilers have been updated. I'm using gnu fortran. > > When running the code now, I got the error: > > Error termination. Backtrace: > At line 294 of file > > /home/users/nus/tsltaywb/myprojects/ibm2d_high_Re_staggered_coef/PETSc_solvers.F90 > Fortran runtime error: Index '-17591876251192' of dimension 1 of array > 'ppv' below lower bound of 1 > > I have attached my makefile. Wonder what I should change to prevent the > above error. > > Compiler should be v11.2 > > -- > Thank you very much. > > Yours sincerely, > > ================================================ > TAY Wee-Beng 郑伟明 (Zheng Weiming) > ================================================ > >
