[petsc-users] Bound exceed when running code with PETSc

Junchao Zhang junchao.zhang at gmail.com
Mon Feb 5 09:12:20 CST 2024


Try to use Valgrind to detect memory errors?

--Junchao Zhang


On Mon, Feb 5, 2024 at 3:29 AM TAY Wee Beng <zonexo at gmail.com> 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)
> ================================================
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240205/364659ae/attachment.html>


More information about the petsc-users mailing list