Basic HTML version of Foils prepared 10 Oct 1995

Foil 23 Fortran example:Blocking Receive MPI_RECV

From Fox Presentation Fall 1995 CPS615 Basic Simulation Track for Computational Science -- Fall Semester 95. by Geoffrey C. Fox


integer status(MPI_STATUS_SIZE) An array to store status
integer mpierr, count, datatype, source, tag, comm
integer recvbuf(100)
count=100
datatype=MPI_REAL
comm=MPI_COMM_WORLD
source=MPI_ANY_SOURCE accept any source processor
tag=MPI_ANY_TAG accept anmy message tag
call MPI_RECV (recvbuf,count,datatype,source,tag,comm,status,mpierr)
Note source and tag can be wild-carded



© on Tue Oct 7 1997