Changeset 22583
- Timestamp:
- 03/20/18 16:20:05 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/mpi/issmmpi.h
r22582 r22583 85 85 #define ISSM_MPI_ANY_SOURCE 3 86 86 /*}}}*/ 87 # 87 #endif 88 88 89 /*Dynamically return ISSM_MPI type from variable type */ 89 90 template <class T> ISSM_MPI_Datatype TypeToMPIType(){assert(false);}; 90 91 template <> inline ISSM_MPI_Datatype TypeToMPIType<IssmDouble>(){return ISSM_MPI_DOUBLE;}; 92 #ifdef _HAVE_ADOLC_ 91 93 template <> inline ISSM_MPI_Datatype TypeToMPIType<IssmPDouble>(){return ISSM_MPI_PDOUBLE;}; 94 #endif 92 95 template <> inline ISSM_MPI_Datatype TypeToMPIType<int>(){return ISSM_MPI_INT;}; 93 96 template <> inline ISSM_MPI_Datatype TypeToMPIType<char>(){return ISSM_MPI_CHAR;}; 97 94 98 template <class T> int ISSM_MPI_Bcast(T *buffer, int count,int root, ISSM_MPI_Comm comm){ /*{{{*/ 95 99 … … 118 122 return rc; 119 123 }/*}}}*/ 120 121 124 /* interfaces {{{*/ 122 125 int ISSM_MPI_Allgather(void *sendbuf, int sendcount, ISSM_MPI_Datatype sendtype, void *recvbuf, int recvcount, ISSM_MPI_Datatype recvtype, ISSM_MPI_Comm comm);
Note:
See TracChangeset
for help on using the changeset viewer.