[MPI3 Fortran] Argument data sizes

Jeff Squyres jsquyres at cisco.com
Thu Sep 18 15:57:40 CDT 2008


On Sep 18, 2008, at 4:42 PM, Craig Rasmussen wrote:

> However, it is within our purview to discuss how to best represent  
> this size in Fortran.  I'm going to take a straw poll on this  
> matter.  Please choose one of the following choices:
>
> 1. A constant kind value defined by the implementation, e.g.,  
> MPI_SIZE_KIND,
>         integer(MPI_SIZE_KIND) :: count
>    It is expected that MPI_SIZE_KIND be the same kind as a default  
> integer
>
> 2. Similar to 1. expect the kind value is C_INT
>
> 3. Use overloading to select use either (effectively) a C int or a C  
> long.  I don't think this will work with default integer dummies
>
> 4. Use default integer, write the wrapper in Fortran, and use  
> assignment to cast the integer to C_INT.
>
> I vote #1 as it provides the most flexibility to the implementer and  
> the compiler will give an error if the programmer does something  
> stupid.


I also vote #1, but I'm probably the least informed on this thread as  
to what real Fortran programmers want.  :-)

-- 
Jeff Squyres
Cisco Systems




More information about the mpiwg-fortran mailing list