Changeset 22583


Ignore:
Timestamp:
03/20/18 16:20:05 (7 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed compilation for non adolc code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/mpi/issmmpi.h

    r22582 r22583  
    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
     
    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);
Note: See TracChangeset for help on using the changeset viewer.