Oy -- I'm unfamiliar with the syntax that you've used (I have barely used
fortran in the past 20 years...). I'm *guessing* that it's ok, but I
don't know for sure.
What LAM will do is take the address that is passed (all calls to LAM/MPI
from fortran are actually implemented as C function calls, and Fortran
passes all parameters to C by reference... so I'm guessing that C gets the
address of Node(np)%rec).
Have you tried it to see if it would work?
On Mon, 12 Jan 2004, jess michelsen wrote:
> Hi everyone!
>
> Just a simple question on fortran/LAM-MPI interaction. I intend to call
> MPI routines using arrays, that are part of a structure, i.e.
>
> call MPI_RECV(Node(np)%rec,count(np),MPI_DOUBLE_PRECISION,np-1,np
> & ,MPI_COMM_WORLD,status,ierr)
>
> Would this require anything else (such as fortran 90 bindings or the
> like) than a standard f77 style call ?:
>
> call MPI_RECV(rec,count,MPI_DOUBLE_PRECISION,np-1,np
> & ,MPI_COMM_WORLD,status,ierr)
>
> Best regards, Jess Michelsen
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|