[MPI3 Fortran] MPI buffer arguments - void and call-by-reference

Aleksandar Donev donev1 at llnl.gov
Mon Feb 16 15:46:51 CST 2009


N.M. Maclaren wrote:
> I am lost.  What do Fortran pointers have to do with MPI?
Surely it has to do with C pointers (did I ever qualify with Fortran 
specifically?)? Where do you get from the Fortran standard, including 
the C interop chapter, that if you take a pointer inside a C routine 
(MPI) and keep it, you can use it to change the value of the actual 
after the call completes??? If a Fortran pointer is the target of a C 
pointer, it has to have the TARGET attribute---see clause 15 in F2003.
Aleks



More information about the mpiwg-fortran mailing list