[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fortran integer declaration in petscdef.h
- To: petsc-dev@xxxxxxxxxxx
- Subject: Re: Fortran integer declaration in petscdef.h
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Mon, 7 Apr 2008 09:59:02 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=LZX6weT5Tr3sJz/HAWvU6whEEVmF1BTyrwTsKiDi2VQ=; b=H5dpARprcqm0alaxTOfoLx3zn6O2qLqpN4JPiQPVNDp8hghHB5DySTFSqQmxo+8sIn6JameJ4wR8Y0UsR+4NL9fDFpK3TUEJ1q3peo9/EVOvJAmTI92vrO5gbwklsCraCXufNLrvkFQJhvqS82dNbn4nvFiTmeCDGTGCD8SEa3o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uuTSY1lYoNKLYoPTxeMe2xsMUUFPbu9Q8eAWL/zwvTNbthrNi5shOimKp0eMe5w0AfTWjUWwYMokNZuAd2j2ERmBuWvndwsgXDCkjJVfSqtAYds5I1097jCAKtduXaNuZXBJHNRW6Na1I+WHknG4GyfXipJDXhGXjRujpjHp5gI=
- In-reply-to: <OF8C2401B3.A1760305-ONC1257424.004F71F0-C1257424.0051485E@notes.edfgdf.fr>
- References: <OF8C2401B3.A1760305-ONC1257424.004F71F0-C1257424.0051485E@notes.edfgdf.fr>
- Reply-to: petsc-dev@xxxxxxxxxxx
- Sender: owner-petsc-dev@xxxxxxxxxxx
On Mon, Apr 7, 2008 at 9:48 AM, Thomas DE-SOZA <thomas.de-soza@xxxxxx> 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