source:
issm/oecreview/Archive/21724-22754/ISSM-22582-22583.diff@
22755
Last change on this file since 22755 was 22755, checked in by , 7 years ago | |
---|---|
File size: 1.4 KB |
-
TabularUnified ../trunk-jpl/src/c/toolkits/mpi/issmmpi.h
84 84 #define ISSM_MPI_ANY_TAG 2 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 96 100 int rc=0; … … 117 121 #endif 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); 123 126 int ISSM_MPI_Allgatherv(void *sendbuf, int sendcount, ISSM_MPI_Datatype sendtype, void *recvbuf, int *recvcounts, int *displs, ISSM_MPI_Datatype recvtype, ISSM_MPI_Comm comm);
Note:
See TracBrowser
for help on using the repository browser.