[MPI3 Fortran] [Fwd: add TYPE(*) and DIMENSION(..) to Fortran]

Aleksandar Donev donev1 at llnl.gov
Fri Sep 5 13:18:10 CDT 2008


On Friday 05 September 2008 11:13, Craig Rasmussen wrote:

> If the array section is non-contiguous, what is the right thing to  
> do?  Should the wrapper make a contiguous copy of the array or is  
> there a more efficient way to sent the contiguous portions of the  
> array via MPI, perhaps using a lower level protocol?
Note that if the dummy is declared as:

type(*), dimension(*) :: buffer

then the *compiler* will make a contiguous copy for you (less work for us :-).

If you actually want to pass strided sections using MPI_Datatype, then 

type(*), dimension(:) :: buffer

will enable that.

Aleks




More information about the mpiwg-fortran mailing list