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