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_intercomm.cpp

    r1500 r1503  
    7777            // change leader 
    7878            is_decider = true; 
    79             int target = local_comm->rank_map->at(local_leader).second; 
     79            int target = local_comm->ep_rank_map->at(local_leader).second; 
    8080            { 
    8181              for(int i=0; i<ep_size; i++) 
    8282              { 
    83                 if(local_comm->rank_map->at(i).second != target && local_comm->rank_map->at(i).first == 0) 
     83                if(local_comm->ep_rank_map->at(i).second != target && local_comm->ep_rank_map->at(i).first == 0) 
    8484                { 
    8585                  new_local_leader = i; 
     
    100100            // change leader 
    101101            is_decider = true; 
    102             int target = local_comm->rank_map->at(local_leader).second; 
     102            int target = local_comm->ep_rank_map->at(local_leader).second; 
    103103            { 
    104104              for(int i=0; i<ep_size; i++) 
    105105              { 
    106                 if(local_comm->rank_map->at(i).second != target && local_comm->rank_map->at(i).first == 0) 
     106                if(local_comm->ep_rank_map->at(i).second != target && local_comm->ep_rank_map->at(i).first == 0) 
    107107                { 
    108108                  new_local_leader = i; 
Note: See TracChangeset for help on using the changeset viewer.