[petsc-users] 64 bit integers

Jed Brown jedbrown at mcs.anl.gov
Fri Aug 17 09:43:11 CDT 2012


On Fri, Aug 17, 2012 at 9:40 AM, Michele Rosso <mrosso at uci.edu> wrote:

> I want to build my application with 64 bit integer support
> because of the size of the problem I am working on.
> I compiled petsc with the option  *--with-64-bit-indices=1*.
> In my Fortran code some petsc vectors are initialize by taking
> values from Fortran arrays.
> I used PetscInt indexes to reference both petsc and fortran vectors.
> It used to work with 32 bit indexes.
> Will it still be the case for the 64 bit case?
>

As long as you use PetscInt for every integer that you pass to and from
PETSc, it will work automatically.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120817/3d6629b8/attachment.html>


More information about the petsc-users mailing list