Basic HTML version of Foils prepared 19 September 98

Foil 37 Fortran example: Receive

From MPI Message Passing Interface Computational Science for Simulations -- Fall Semester 1998. by Geoffrey C. Fox, Nancy McCracken


1 integer status(MPI_STATUS_SIZE) An array to store status of received information
2 integer mpierr, count, datatype, source, tag, comm
3 integer recvbuf(100)
4 count = 100
5 datatype = MPI_REAL
6 comm = MPI_COMM_WORLD
7 source = MPI_ANY_SOURCE accept any source processor
8 tag = MPI_ANY_TAG accept any message tag
9 call MPI_RECV (recvbuf, count, datatype, source, tag, comm, status, mpierr)
  • Note source and tag can be wild-carded

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999