2004-01-26 01:07:54 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-26 01:07:54 +03:00
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-10-23 23:24:00 +04:00
|
|
|
#include "mpi/f77/fint_2_int.h"
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "class/ompi_list.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "info/info.h"
|
2004-04-21 02:13:39 +04:00
|
|
|
#include "errhandler/errhandler.h"
|
|
|
|
#include "communicator/communicator.h"
|
2004-01-26 01:07:54 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
|
2004-01-26 01:07:54 +03:00
|
|
|
#pragma weak MPI_Info_c2f = PMPI_Info_c2f
|
|
|
|
#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-07-30 06:58:53 +04:00
|
|
|
static const char FUNC_NAME[] = "MPI_Info_c2f";
|
|
|
|
|
|
|
|
|
|
|
|
MPI_Fint MPI_Info_c2f(MPI_Info info)
|
|
|
|
{
|
2004-04-21 02:13:39 +04:00
|
|
|
if (MPI_PARAM_CHECK) {
|
2004-07-30 06:58:53 +04:00
|
|
|
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
2004-09-16 19:14:55 +04:00
|
|
|
|
|
|
|
if (NULL == info || ompi_info_is_freed(info)) {
|
2004-10-23 23:24:00 +04:00
|
|
|
info = MPI_INFO_NULL;
|
2004-04-21 02:13:39 +04:00
|
|
|
}
|
|
|
|
}
|
2004-07-30 06:58:53 +04:00
|
|
|
|
2004-10-23 23:24:00 +04:00
|
|
|
return OMPI_INT_2_FINT(info->i_f_to_c_index);
|
2004-01-26 01:07:54 +03:00
|
|
|
}
|