[petsc-dev] plex failures for 64 bit indices

Jed Brown jedbrown at mcs.anl.gov
Mon Dec 2 20:53:14 CST 2013


Matthew Knepley <knepley at gmail.com> writes:

> On Mon, Dec 2, 2013 at 8:20 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> What is our preferred fix for this? Do I just disable this code for 64-bit
> indices?

If gmsh definitely does not support large indices, fscanf into plain int
and then copy to the PetscInt data structure.  If gmsh might ever
support large indices, always fscanf into the longest type available and
check for overflow before possibly truncating into PetscInt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131202/4ccd7680/attachment.sig>


More information about the petsc-dev mailing list