[MPI3 Fortran] [Mpi-comments] MPI 3.0: Fortran 2008 interface - issue with the LOGICAL kind

Jeff Squyres (jsquyres) jsquyres at cisco.com
Wed Mar 20 12:17:36 CDT 2013


On Mar 20, 2013, at 8:01 AM, Bill Long <longb at cray.com> wrote:

>>>     integer(C_request) :: request
> 
> This is correct for mpich.  OpenMPI would evidently have a different version.  But the concept is still the same - make a correct interface to the C library routine, however it is defined by the implementation, and then call that from a thin Fortran wrapper that takes care of the issues related to LOGICAL, the use of default INTEGER, and OPTIONAL arguments.


Instead of integer(c_request), is there a way to standardize on a type that can be implementation-defined?  That way, a tool doesn't have to figure out integer vs. <something_else>.

It would be terrible to force a tool to figure out the type that they're supposed to use.

-- 
Jeff Squyres
jsquyres at cisco.com
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/





More information about the mpiwg-fortran mailing list