Changeset 1503 for XIOS/dev/branch_openmp/extern/ep_dev/ep_lib.cpp
- Timestamp:
- 05/28/18 17:28:07 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/ep_dev/ep_lib.cpp
r1500 r1503 33 33 int get_ep_rank(MPI_Comm comm, int ep_rank_loc, int mpi_rank) 34 34 { 35 for(int i=0; i<comm-> rank_map->size(); i++)36 { 37 if( ( comm-> rank_map->at(i).first == ep_rank_loc )38 && ( comm-> rank_map->at(i).second == mpi_rank ) )35 for(int i=0; i<comm->ep_rank_map->size(); i++) 36 { 37 if( ( comm->ep_rank_map->at(i).first == ep_rank_loc ) 38 && ( comm->ep_rank_map->at(i).second == mpi_rank ) ) 39 39 { 40 40 return i; … … 89 89 void check_sum_send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, int type) 90 90 { 91 91 92 int src_rank; 92 93 int int_count; … … 121 122 void check_sum_recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, int type) 122 123 { 124 123 125 int dest_rank; 124 126 int int_count; … … 147 149 } 148 150 else printf("Unable to open file\n"); 151 149 152 150 153 }
Note: See TracChangeset
for help on using the changeset viewer.