source: issm/oecreview/Archive/21724-22754/ISSM-22582-22583.diff@ 22755

Last change on this file since 22755 was 22755, checked in by Mathieu Morlighem, 7 years ago

CHG: added 21724-22754

File size: 1.4 KB
  • TabularUnified ../trunk-jpl/src/c/toolkits/mpi/issmmpi.h

     
    8484        #define ISSM_MPI_ANY_TAG       2
    8585        #define ISSM_MPI_ANY_SOURCE    3
    8686        /*}}}*/
    87 # endif
     87#endif
    8888
     89/*Dynamically return ISSM_MPI type from variable type */
    8990template <class T> ISSM_MPI_Datatype TypeToMPIType(){assert(false);};
    9091template <> inline ISSM_MPI_Datatype TypeToMPIType<IssmDouble>(){return ISSM_MPI_DOUBLE;};
     92#ifdef _HAVE_ADOLC_
    9193template <> inline ISSM_MPI_Datatype TypeToMPIType<IssmPDouble>(){return ISSM_MPI_PDOUBLE;};
     94#endif
    9295template <> inline ISSM_MPI_Datatype TypeToMPIType<int>(){return ISSM_MPI_INT;};
    9396template <> inline ISSM_MPI_Datatype TypeToMPIType<char>(){return ISSM_MPI_CHAR;};
     97
    9498template <class T> int ISSM_MPI_Bcast(T *buffer, int count,int root, ISSM_MPI_Comm comm){  /*{{{*/
    9599
    96100        int rc=0;
     
    117121#endif
    118122        return rc;
    119123}/*}}}*/
    120 
    121124/* interfaces  {{{*/
    122125int ISSM_MPI_Allgather(void *sendbuf, int sendcount, ISSM_MPI_Datatype sendtype, void *recvbuf, int recvcount, ISSM_MPI_Datatype recvtype, ISSM_MPI_Comm comm);
    123126int 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.