Newsgroups: comp.parallel.mpi
From: doss@ERC.MsState.Edu (Nathan E. Doss)
Subject: Re: MPI_GET_... routines missing
Organization: Mississippi State University
Date: 28 Nov 1994 20:23:52 GMT
Message-ID: <3bde8o$g2p@Tut.MsState.Edu>

Bernd Wender (wender@par.univie.ac.at) wrote:
: I've been playing around with the MPICH implementation recently.
: I found out that the MPI_GET_SOURCE, MPI_GET_TAG and MPI_GET_COUNT
: routines are not implemented. Is there a particular reason for that?
: (I did the implementation by my own and it took me 5 minutes or 23 lines
: of FORTRAN code(without error handling).)

: 	Bernd

  MPI_GET_SOURCE and MPI_GET_TAG were done away with in the final version
  of the MPI document.  From the standard document dated May 5th, 
  Section 3.2.5 (http:////www.mcs.anl.gov/mpi/mpi-report/node34.html#Node34):

      In C, status is a structure that contains two fields named 
      MPI_SOURCE and MPI_TAG, and the structure may contain 
      additional fields. Thus, status.MPI_SOURCE and status.
      MPI_TAG contain the source and tag, respectively, of the 
      received message. 

      In Fortran, status is an array of INTEGERs of size 
      MPI_STATUS_SIZE. The two constants MPI_SOURCE and MPI_TAG 
      are the indices of the entries that store the source and 
      tag fields. Thus status(MPI_SOURCE) and status(MPI_TAG) 
      contain, respectively, the source and the tag of the 
      received message. 

  The MPI_GET_COUNT function is present in the MPICH implementation.

--
Nathan Doss          doss@ERC.MsState.Edu

