Changeset 1500 for XIOS/dev/branch_openmp/extern/ep_dev/ep_barrier.cpp
- Timestamp:
- 05/28/18 09:54:32 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/ep_dev/ep_barrier.cpp
r1499 r1500 9 9 int MPI_Barrier(MPI_Comm comm) 10 10 { 11 if(comm .is_intercomm) return MPI_Barrier_intercomm(comm);11 if(comm->is_intercomm) return MPI_Barrier_intercomm(comm); 12 12 13 if(comm .is_ep)13 if(comm->is_ep) 14 14 { 15 int ep_rank_loc = comm .ep_comm_ptr->size_rank_info[1].first;15 int ep_rank_loc = comm->ep_comm_ptr->size_rank_info[1].first; 16 16 17 17 MPI_Barrier_local(comm); … … 19 19 if(ep_rank_loc == 0) 20 20 { 21 ::MPI_Comm mpi_comm = to_mpi_comm(comm .mpi_comm);21 ::MPI_Comm mpi_comm = to_mpi_comm(comm->mpi_comm); 22 22 23 23 ::MPI_Barrier(mpi_comm); … … 28 28 return 0; 29 29 } 30 else if(comm .mpi_comm != static_cast< ::MPI_Comm*>(MPI_COMM_NULL.mpi_comm))30 else if(comm->mpi_comm != static_cast< ::MPI_Comm*>(MPI_COMM_NULL->mpi_comm)) 31 31 { 32 ::MPI_Comm mpi_comm = to_mpi_comm(comm .mpi_comm);32 ::MPI_Comm mpi_comm = to_mpi_comm(comm->mpi_comm); 33 33 ::MPI_Barrier(mpi_comm); 34 34 return 0; … … 42 42 { 43 43 44 int ep_rank_loc = comm .ep_comm_ptr->size_rank_info[1].first;44 int ep_rank_loc = comm->ep_comm_ptr->size_rank_info[1].first; 45 45 46 46 MPI_Barrier_local(comm); … … 48 48 if(ep_rank_loc == 0) 49 49 { 50 ::MPI_Comm mpi_comm = to_mpi_comm(comm .ep_comm_ptr->intercomm->mpi_inter_comm);50 ::MPI_Comm mpi_comm = to_mpi_comm(comm->ep_comm_ptr->intercomm->mpi_inter_comm); 51 51 ::MPI_Barrier(mpi_comm); 52 52 } … … 62 62 { 63 63 //Message_Check(comm); 64 comm .ep_barrier->wait();64 comm->ep_barrier->wait(); 65 65 } 66 66
Note: See TracChangeset
for help on using the changeset viewer.