Ignore:
Timestamp:
04/26/16 16:03:58 (6 years ago)
Author:
mhnguyen
Message:

Small improvements on transformation mapping

+) Remove complex structure of transformation mapping by a simpler one

Test
+) On Curie
+) All tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/grid_transformation.cpp

    r841 r842  
    450450    for (int i = 0; i < numGlobalIndex; ++i) 
    451451    { 
    452       int vecSize = ((itMapRecv->second)[i]).size(); 
    453       for (int idx = 0; idx < vecSize; ++idx) 
    454       { 
    455         const std::pair<int, std::pair<size_t,double> >& tmpPair = (itMapRecv->second)[i][idx]; 
    456         recvTmp[sourceRank][i].push_back(make_pair(tmpPair.first, tmpPair.second.second)); 
    457       } 
     452      recvTmp[sourceRank][i] = make_pair((itMapRecv->second)[i].localIndex,(itMapRecv->second)[i].weight); 
    458453    } 
    459454  } 
Note: See TracChangeset for help on using the changeset viewer.