Fortran integer declaration in petscdef.h
Matthew Knepley
knepley at gmail.com
Mon Apr 7 09:59:02 CDT 2008
On Mon, Apr 7, 2008 at 9:48 AM, Thomas DE-SOZA <thomas.de-soza at edf.fr> wrote:
>
> Hi,
>
> I was wondering if in $PETSC_DIR/include/finclude/petscdef.h :
>
> 50 #if defined(PETSC_HAVE_MPIUNI)
> 51 #define MPI_Comm PetscFortranInt
> 52 #define PetscMPIInt PetscFortranInt
> 53 #else
> 54 #define MPI_Comm integer
> 55 #define PetscMPIInt integer
> 56 #endif
>
> the integer declaration should not be changed to something dependent on
> PETSC_SIZEOF_INT.
This is an internal type we use to represent communicators in our own mini-MPI
implementation. Our choice merely limits the number of unique communicators
in the program to 2^32 on a 32bit machine. This is not usually an obstacle.
Matt
> Regards,
>
> Thomas
--
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
More information about the petsc-dev
mailing list