Ignore:
Timestamp:
12/04/17 17:12:00 (6 years ago)
Author:
yushan
Message:

omp dev : unify MPI_Comm type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_size.cpp

    r1287 r1354  
    22#include <mpi.h> 
    33#include "ep_declaration.hpp" 
     4#include "ep_mpi.hpp" 
    45 
    56namespace ep_lib 
     
    3132    Debug("Calling EP_Comm_size\n"); 
    3233 
    33     if(comm.mpi_comm != static_cast< ::MPI_Comm>(MPI_COMM_NULL.mpi_comm)) 
     34    if(comm.mpi_comm != static_cast< ::MPI_Comm*>(MPI_COMM_NULL.mpi_comm)) 
    3435    { 
    35       ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm > (comm.mpi_comm);  
     36      ::MPI_Comm mpi_comm = to_mpi_comm(comm.mpi_comm);  
    3637      int mpi_size; 
    3738 
     
    5455    if(!comm.is_ep) 
    5556    { 
    56       if(comm.mpi_comm != static_cast< ::MPI_Comm>(MPI_COMM_NULL.mpi_comm)) 
     57      if(comm.mpi_comm != static_cast< ::MPI_Comm*>(MPI_COMM_NULL.mpi_comm)) 
    5758      { 
    58         ::MPI_Comm mpi_comm = static_cast< ::MPI_Comm > (comm.mpi_comm);  
     59        ::MPI_Comm mpi_comm = to_mpi_comm(comm.mpi_comm);  
    5960        ::MPI_Comm_remote_size(mpi_comm, size); 
    6061        return 0; 
Note: See TracChangeset for help on using the changeset viewer.