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

Matthew Knepley knepley at gmail.com
Mon Feb 5 06:21:37 CST 2024


On Mon, Feb 5, 2024 at 4: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.
>

This looks like an integer overflow error. DId you configure with 64-bit
ints?

   Thanks,

      Matt


> Compiler should be v11.2
>
> --
> Thank you very much.
>
> Yours sincerely,
>
> ================================================
> TAY Wee-Beng 郑伟明 (Zheng Weiming)
> ================================================
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240205/e69f35a8/attachment.html>


More information about the petsc-users mailing list