00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "mpioimpl.h"
00010
00011 #ifdef HAVE_WEAK_SYMBOLS
00012
00013 #if defined(HAVE_PRAGMA_WEAK)
00014 #pragma weak MPIO_Request_f2c = PMPIO_Request_f2c
00015 #elif defined(HAVE_PRAGMA_HP_SEC_DEF)
00016 #pragma _HP_SECONDARY_DEF PMPIO_Request_f2c MPIO_Request_f2c
00017 #elif defined(HAVE_PRAGMA_CRI_DUP)
00018 #pragma _CRI duplicate MPIO_Request_f2c as PMPIO_Request_f2c
00019
00020 #endif
00021
00022
00023 #define MPIO_BUILD_PROFILING
00024 #include "mpioprof.h"
00025 #endif
00026 #include "adio_extern.h"
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 MPIO_Request MPIO_Request_f2c(MPI_Fint request)
00039 {
00040
00041 #ifndef INT_LT_POINTER
00042 return (MPIO_Request) request;
00043 #else
00044 if (!request) return MPIO_REQUEST_NULL;
00045 if ((request < 0) || (request > ADIOI_Reqtable_ptr)) {
00046 FPRINTF(stderr, "MPIO_Request_f2c: Invalid request\n");
00047 MPI_Abort(MPI_COMM_WORLD, 1);
00048 }
00049 return ADIOI_Reqtable[request];
00050 #endif
00051 }