[petsc-dev] array bounds exceeded?

Matthew Knepley knepley at gmail.com
Mon Jan 23 19:52:59 CST 2017


I don't think the engine understands mod.

   Matt

On Mon, Jan 23, 2017 at 4:30 PM, Adrian Croucher <a.croucher at auckland.ac.nz>
wrote:

> I just pulled the latest 'next' branch and compiled. I noticed the
> following warning- can this be ignored or is it possibly trouble?
>
>           CC linux-gnu-c-opt/obj/src/dm/impls/plex/plexgeometry.o
> /home/acro018/software/PETSc/code/src/dm/impls/plex/plexgeometry.c: In
> function ‘DMPlexComputeGridHash_Internal’:
> /home/acro018/software/PETSc/code/src/dm/impls/plex/plexgeometry.c:493:90:
> warning: array subscript is above array bounds [-Warray-bounds]
>              for (d = 0; d < dim; ++d) {segA[d] =
> PetscRealPart(ccoords[edge*dim+d]); segA[dim+d] =
> PetscRealPart(ccoords[((edge+1)%(dim+1))*dim+d]);}
>
> - Adrian
>
> --
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> University of Auckland, New Zealand
> email: a.croucher at auckland.ac.nz
> tel: +64 (0)9 923 4611
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170123/400e2a6e/attachment.html>


More information about the petsc-dev mailing list