📄 graphdimsgtf.c
字号:
/* graphdims_get.c *//* Custom Fortran interface file */#include "mpi_fortimpl.h"#if defined(MPI_BUILD_PROFILING) || defined(HAVE_WEAK_SYMBOLS)#if defined(HAVE_WEAK_SYMBOLS)#if defined(HAVE_PRAGMA_WEAK)#if defined(F77_NAME_UPPER)#pragma weak MPI_GRAPHDIMS_GET = PMPI_GRAPHDIMS_GETvoid MPI_GRAPHDIMS_GET ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#elif defined(F77_NAME_LOWER_2USCORE)#pragma weak mpi_graphdims_get__ = pmpi_graphdims_get__void mpi_graphdims_get__ ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#elif !defined(F77_NAME_LOWER_USCORE)#pragma weak mpi_graphdims_get = pmpi_graphdims_getvoid mpi_graphdims_get ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#else#pragma weak mpi_graphdims_get_ = pmpi_graphdims_get_void mpi_graphdims_get_ ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );#endif#elif defined(HAVE_PRAGMA_HP_SEC_DEF)#if defined(F77_NAME_UPPER)#pragma _HP_SECONDARY_DEF PMPI_GRAPHDIMS_GET MPI_GRAPHDIMS_GET#elif defined(F77_NAME_LOWER_2USCORE)#pragma _HP_SECONDARY_DEF pmpi_graphdims_get__ mpi_graphdims_get__#elif !defined(F77_NAME_LOWER_USCORE)#pragma _HP_SECONDARY_DEF pmpi_graphdims_get mpi_graphdims_get#else#pragma _HP_SECONDARY_DEF pmpi_graphdims_get_ mpi_graphdims_get_#endif#elif defined(HAVE_PRAGMA_CRI_DUP)#if defined(F77_NAME_UPPER)#pragma _CRI duplicate MPI_GRAPHDIMS_GET as PMPI_GRAPHDIMS_GET#elif defined(F77_NAME_LOWER_2USCORE)#pragma _CRI duplicate mpi_graphdims_get__ as pmpi_graphdims_get__#elif !defined(F77_NAME_LOWER_USCORE)#pragma _CRI duplicate mpi_graphdims_get as pmpi_graphdims_get#else#pragma _CRI duplicate mpi_graphdims_get_ as pmpi_graphdims_get_#endif/* end of weak pragmas */#endif/* Include mapping from MPI->PMPI */#include "mpiprof.h"/* Insert the prototypes for the PMPI routines */#undef __MPI_BINDINGS#include "binding.h"#endif#ifdef F77_NAME_UPPER#define mpi_graphdims_get_ PMPI_GRAPHDIMS_GET#elif defined(F77_NAME_LOWER_2USCORE)#define mpi_graphdims_get_ pmpi_graphdims_get__#elif !defined(F77_NAME_LOWER_USCORE)#define mpi_graphdims_get_ pmpi_graphdims_get#else#define mpi_graphdims_get_ pmpi_graphdims_get_#endif#else#ifdef F77_NAME_UPPER#define mpi_graphdims_get_ MPI_GRAPHDIMS_GET#elif defined(F77_NAME_LOWER_2USCORE)#define mpi_graphdims_get_ mpi_graphdims_get__#elif !defined(F77_NAME_LOWER_USCORE)#define mpi_graphdims_get_ mpi_graphdims_get#endif#endif/* Prototype to suppress warnings about missing prototypes */FORTRAN_API void FORT_CALL mpi_graphdims_get_ ( MPI_Fint *, MPI_Fint *, MPI_Fint *, MPI_Fint * );FORTRAN_API void FORT_CALL mpi_graphdims_get_ ( MPI_Fint *comm, MPI_Fint *nnodes, MPI_Fint *nedges, MPI_Fint *__ierr ){ int lnnodes; int lnedges; *__ierr = MPI_Graphdims_get( MPI_Comm_f2c(*comm), &lnnodes, &lnedges); *nnodes = (MPI_Fint)lnnodes; *nedges = (MPI_Fint)lnedges;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -