Ignore:
Timestamp:
05/28/18 17:28:07 (3 years ago)
Author:
yushan
Message:

rank_map is passed from vector to map, in order to have more flexibility in comm_split

File:
1 edited

Legend:

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

    r1500 r1503  
    5656    int mpi_size = comm->ep_comm_ptr->size_rank_info[2].second; 
    5757 
    58     int root_mpi_rank = comm->rank_map->at(root).second; 
    59     int root_ep_loc = comm->rank_map->at(root).first; 
     58    int root_mpi_rank = comm->ep_rank_map->at(root).second; 
     59    int root_ep_loc = comm->ep_rank_map->at(root).first; 
    6060 
    6161    bool is_master = (ep_rank_loc==0 && mpi_rank != root_mpi_rank ) || ep_rank == root; 
     
    8787      for(int i=0; i<ep_size; i++) 
    8888      { 
    89         recvcounts[comm->rank_map->at(i).second]++; 
     89        recvcounts[comm->ep_rank_map->at(i).second]++; 
    9090      } 
    9191 
Note: See TracChangeset for help on using the changeset viewer.