Ignore:
Timestamp:
09/10/20 13:51:02 (4 years ago)
Author:
ymipsl
Message:

Big update on on going work related to data distribution and transfer between clients and servers.
Revisite of the source and store filter using "connectors".

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/gatherer_connector.cpp

    r1918 r1930  
    1515    unordered_map<size_t,int> mapGlobalLocalIndex ; 
    1616    int globalIndexSize=dstGlobalIndex.size() ; 
    17     for(auto& ind : dstIndex) mapGlobalLocalIndex[dstGlobalIndex(ind)] = ind ; 
     17    //for(auto& ind : dstIndex) mapGlobalLocalIndex[dstGlobalIndex(ind)] = ind ; 
     18    for(int i=0; i<dstSize_ ; i++) if (dstIndex(i)>=0 && dstIndex(i)<globalIndexSize) mapGlobalLocalIndex[dstGlobalIndex(dstIndex(i))] = i ; 
     19 
    1820    for(auto& rankIndex : srcIndex) 
    1921    { 
     
    2729      for(int ind=0; ind<indexSize ; ind++) 
    2830      { 
    29         if (ind>=0 && ind<globalIndexSize) 
     31        if (index(ind)>=0 && index(ind)<globalIndexSize) 
    3032        { 
    31            auto it=mapGlobalLocalIndex.find(globalIndex(ind)) ; 
     33           auto it=mapGlobalLocalIndex.find(globalIndex(index(ind))) ; 
    3234           if (it != mapGlobalLocalIndex.end())  
    3335           { 
Note: See TracChangeset for help on using the changeset viewer.