Ignore:
Timestamp:
06/01/18 15:24:53 (6 years ago)
Author:
yushan
Message:

save dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/ep_dev/ep_lib.cpp

    r1515 r1517  
    44#include <iostream> 
    55#include <fstream> 
     6#include "ep_mpi.hpp" 
    67 
    78using namespace std; 
     
    1415namespace ep_lib 
    1516{  
    16   bool ep_comm::is_null() 
    17   { 
    18     if(!this->is_intercomm) 
    19       return this->mpi_comm == MPI_COMM_NULL->mpi_comm; 
    20     else 
    21       return this->ep_comm_ptr->intercomm->mpi_inter_comm == MPI_COMM_NULL->mpi_comm; 
    22   } 
    2317 
    2418  int tag_combine(int real_tag, int src, int dest) 
     
    4741  int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count) 
    4842  { 
    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); 
    5444  } 
    5545 
     
    227217{ 
    228218  return *(static_cast< MPI_Comm* >(comm)); 
     219}  
     220 
     221MPI_Comm* to_mpi_comm_ptr(void* comm) 
     222{ 
     223  return static_cast< MPI_Comm* >(comm); 
    229224 
    230225 
Note: See TracChangeset for help on using the changeset viewer.