[petsc-users] 64 bit integers

Michele Rosso mrosso at uci.edu
Fri Aug 17 10:12:43 CDT 2012


Thank you.
Does this mean that Fortran compiler invoked by the PETSc Makefile will
compile to code with the 64 bit integer option so that also Fortran 
Integer will be 64 bit?

Michele

On 08/17/2012 07:43 AM, Jed Brown wrote:
> On Fri, Aug 17, 2012 at 9:40 AM, Michele Rosso <mrosso at uci.edu 
> <mailto: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/ef62e70f/attachment.html>


More information about the petsc-users mailing list