[petsc-users] 64 bit integers

Matthew Knepley knepley at gmail.com
Fri Aug 17 10:16:54 CDT 2012


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

>  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?
>

Yes

   Matt


> 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> 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.
>
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120817/201a4dfe/attachment.html>


More information about the petsc-users mailing list