[petsc-users] Check Array and String Bounds in PETSc
Barry Smith
bsmith at mcs.anl.gov
Sun Oct 19 19:06:25 CDT 2014
Use ISLocalToGlobalMappingGetIndicesF90()
> On Oct 19, 2014, at 6:38 PM, Danyang Su <danyang.su at gmail.com> wrote:
>
> Hi All,
>
> How can I avoid "array bounds" error when using PETSc. I have to debug my codes so I compiled the codes with option "Check Array and String Bounds". But this results into array bounds error when I need to use ltog, as shown below.
> call DMGetLocalToGlobalMapping(dmda_flow%da,ltogm,ierr)
> call ISLocalToGlobalMappingGetIndices(ltogm,ltog,idltog,ierr)
> Exactly the aforementioned two lines work fine and the bug is in somewhere else. But the debug process just stops at the codes when ltog is used. How can avoid this?
>
> Thanks,
>
> Danyang
More information about the petsc-users
mailing list