2004-01-25 04:51:49 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-25 04:51:49 +03:00
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-05-01 00:36:40 +04:00
|
|
|
#include "runtime/runtime.h"
|
|
|
|
#include "errhandler/errhandler.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-25 04:51:49 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
|
2004-01-25 04:51:49 +03:00
|
|
|
#pragma weak MPI_Get_address = PMPI_Get_address
|
|
|
|
#endif
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_PROFILING_DEFINES
|
2004-04-20 22:50:43 +04:00
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-05-01 00:36:40 +04:00
|
|
|
static char FUNC_NAME[] = "MPI_Get_address";
|
|
|
|
|
|
|
|
int MPI_Get_address(void *location, MPI_Aint *address)
|
|
|
|
{
|
|
|
|
if( MPI_PARAM_CHECK ) {
|
2004-06-07 19:33:53 +04:00
|
|
|
if( OMPI_MPI_INVALID_STATE ) {
|
2004-06-15 05:39:49 +04:00
|
|
|
OMPI_ERRHANDLER_RETURN( MPI_ERR_INTERN, MPI_COMM_WORLD,
|
2004-05-01 00:36:40 +04:00
|
|
|
MPI_ERR_INTERN, FUNC_NAME );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*address = (MPI_Aint)location;
|
2004-01-25 04:51:49 +03:00
|
|
|
return MPI_SUCCESS;
|
|
|
|
}
|