Changeset 1517 for XIOS/dev/branch_openmp/extern/ep_dev/ep_lib.cpp
- Timestamp:
- 06/01/18 15:24:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/ep_dev/ep_lib.cpp
r1515 r1517 4 4 #include <iostream> 5 5 #include <fstream> 6 #include "ep_mpi.hpp" 6 7 7 8 using namespace std; … … 14 15 namespace ep_lib 15 16 { 16 bool ep_comm::is_null()17 {18 if(!this->is_intercomm)19 return this->mpi_comm == MPI_COMM_NULL->mpi_comm;20 else21 return this->ep_comm_ptr->intercomm->mpi_inter_comm == MPI_COMM_NULL->mpi_comm;22 }23 17 24 18 int tag_combine(int real_tag, int src, int dest) … … 47 41 int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count) 48 42 { 49 50 ::MPI_Status *mpi_status = static_cast< ::MPI_Status* >(status->mpi_status); 51 ::MPI_Datatype *mpi_datatype = static_cast< ::MPI_Datatype*>(datatype); 52 53 ::MPI_Get_count(mpi_status, *mpi_datatype, count); 43 return ::MPI_Get_count(to_mpi_status_ptr(*status), to_mpi_type(datatype), count); 54 44 } 55 45 … … 227 217 { 228 218 return *(static_cast< MPI_Comm* >(comm)); 219 } 220 221 MPI_Comm* to_mpi_comm_ptr(void* comm) 222 { 223 return static_cast< MPI_Comm* >(comm); 229 224 } 230 225
Note: See TracChangeset
for help on using the changeset viewer.