Ignore:
Timestamp:
05/28/18 17:28:07 (6 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_lib.cpp

    r1500 r1503  
    3333  int get_ep_rank(MPI_Comm comm, int ep_rank_loc, int mpi_rank) 
    3434  { 
    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 ) ) 
    3939      { 
    4040        return i; 
     
    8989  void check_sum_send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm, int type) 
    9090  { 
     91 
    9192    int src_rank; 
    9293    int int_count; 
     
    121122  void check_sum_recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, int type) 
    122123  { 
     124 
    123125    int dest_rank; 
    124126    int int_count; 
     
    147149    } 
    148150    else printf("Unable to open file\n"); 
     151 
    149152 
    150153  } 
Note: See TracChangeset for help on using the changeset viewer.