[petsc-dev] Weird errors with enum in 64-bit ints

Matthew Knepley knepley at gmail.com
Mon Jan 13 18:35:45 CST 2020


On Mon, Jan 13, 2020 at 10:15 AM Smith, Barry F. <bsmith at mcs.anl.gov> wrote:

>
>   I looked at the code and see nothing glaring wrong. I guess it requires
> valgrind and the debugger on the machine where the trouble occurs. Your
> enum should not need to be changed.
>

I can't login since ANL disabled my login.

   Matt


>   Barry
>
>
> > On Jan 13, 2020, at 3:52 AM, Matthew Knepley <knepley at gmail.com> wrote:
> >
> > I have some unexplainable errors with 64-bit ints in this branch:
> >
> >   https://gitlab.com/petsc/petsc/-/jobs/400852717
> >
> > from
> >
> >   https://gitlab.com/petsc/petsc/pipelines/108833203
> >
> > I have built my own 64-bit arches, and the one compiled with new gcc
> works fine
> > and is valgrind clean. With the bad old Apple gcc I get an inexplicable
> error with
> >
> >   DMPlexGetCellRefiner_Internal()
> >
> > in plexrefine.c:10433. In the debugger, it looks like it only passes
> have the address.
> > I cannot understand what is going on since the declarations look fine to
> me, and work
> > with 32-bit ints. Does anyone know how to fix this? Should I be
> declaring my function
> > using PetscEnum* rather than my specific enum?
> >
> >   Thanks,
> >
> >      Matt
> >
> > --
> > 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/
>
>

-- 
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-dev/attachments/20200113/cc484b51/attachment.html>


More information about the petsc-dev mailing list