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

    r1500 r1503  
    4949 
    5050 
    51         if( ! (*comm)->rank_map->empty() ) 
     51        if( ! (*comm)->ep_rank_map->empty() ) 
    5252        { 
    53           (*comm)->rank_map->clear(); 
    54           delete (*comm)->rank_map; 
    55           Debug("rank_map emptied\n"); 
     53          (*comm)->ep_rank_map->clear(); 
     54          delete (*comm)->ep_rank_map; 
     55          Debug("ep_rank_map emptied and freed\n"); 
    5656        } 
    5757 
     
    110110 
    111111 
    112       if( ! (*comm)->rank_map->empty() ) 
     112      if( ! (*comm)->ep_rank_map->empty() ) 
    113113      { 
    114         (*comm)->rank_map->clear(); 
    115         Debug("rank_map emptied\n"); 
     114        (*comm)->ep_rank_map->clear(); 
     115        delete (*comm)->ep_rank_map; 
     116        Debug("ep_rank_map emptied and freed\n"); 
    116117      } 
    117118 
Note: See TracChangeset for help on using the changeset viewer.