Matthew Knepley <[email protected]> writes: > On Mon, Dec 2, 2013 at 8:20 PM, Barry Smith <[email protected]> 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.
pgpv5m4TWBhu5.pgp
Description: PGP signature
