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

Matthew Knepley knepley at gmail.com
Mon Feb 5 07:50:25 CST 2024


On Mon, Feb 5, 2024 at 8:48 AM TAY Wee Beng <zonexo at gmail.com> wrote:

> Hi all,
>
> Not in my code, nor in PETSc.
>
I would try this. Of course, it would be best to see where exactly the
overflow is happening.

   THanks,

     Matt


> On 5/2/2024 8:21 pm, Matthew Knepley wrote:
>
> 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/>
>
> --
>
> 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/44d169ae/attachment-0001.html>


More information about the petsc-users mailing list