[petsc-dev] Weird errors with enum in 64-bit ints
Smith, Barry F.
bsmith at mcs.anl.gov
Mon Jan 13 09:15:50 CST 2020
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.
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/
More information about the petsc-dev
mailing list