[petsc-users] long int
Barry Smith
bsmith at mcs.anl.gov
Sun Jun 12 11:39:34 CDT 2011
On Jun 12, 2011, at 1:48 AM, Mohammad Mirzadeh wrote:
> I guess I figured it out. On 64-bit OS long long and long are the same and I may as well just use --with-64-bit-ints flag.
You only need to configure PETSc with --with-64-bit-indices if you are dealing with problems with over 2 billion unknowns (in parallel) or if the sparse matrix will have more than 2 billion nonzeros on a single process. You do not need to use --with-64-bit-indices just because you are using 64 bit pointers, only for really large problems.
Barry
>
> Thanks
>
>
> On Sat, Jun 11, 2011 at 11:22 PM, Mohammad Mirzadeh <mirzadeh at gmail.com> wrote:
> Hi guys,
>
> How can I use long int instead of PetscInt in the functions? Does simply changing the definition of PetscInt solve the problem?
>
> Thanks
>
More information about the petsc-users
mailing list