MPI_Address(3) | Open MPI | MPI_Address(3) |
NAME¶
MPI_Address - Gets the address of a location in memory -- use of this routine is deprecated.SYNTAX¶
C Syntax¶
#include <mpi.h> int MPI_Address(void * location, MPI_Aint *address)
Fortran Syntax¶
INCLUDE 'mpif.h' MPI_ADDRESS( LOCATION, ADDRESS, IERROR) <type> LOCATION (*) INTEGER ADDRESS, IERROR
INPUT PARAMETER¶
- location
- Location in caller memory (choice).
OUTPUT PARAMETERS¶
- address
- Address of location (integer).
- IERROR
- Fortran only: Error status (integer).
DESCRIPTION¶
Note that use of this routine is deprecated as of MPI-2. Please use MPI_get_address instead.REAL A(100,100)
INTEGER I1, I2, DIFF
CALL MPI_ADDRESS(A(1,1), I1, IERROR)
CALL MPI_ADDRESS(A(10,10), I2, IERROR)
DIFF = I2 - I1
NOTES¶
This routine is provided for both Fortran and C programmers and may be useful when writing portable code. In the current release, the address returned by this routine will be the same as that produced by the C & operator.ERRORS¶
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object.February 10, 2012 | 1.4.5 |