Ignore:
Timestamp:
04/26/16 16:03:58 (8 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/filter/spatial_transform_filter.cpp

    r841 r842  
    169169      { 
    170170        int countSize = itRecv->second.size(); 
     171        const std::vector<std::pair<int,double> >& localIndex_p = itRecv->second; 
    171172        for (int idx = 0; idx < countSize; ++idx) 
    172173        { 
    173           const std::vector<std::pair<int,double> >& localIndex_p = itRecv->second[idx]; 
    174           int numIndex = localIndex_p.size(); 
    175           for (int i = 0; i < numIndex; ++i) 
    176           { 
    177             dataCurrentDest(localIndex_p[i].first) += *(recvBuff+currentBuff+idx) * localIndex_p[i].second; 
    178           } 
     174          dataCurrentDest(localIndex_p[idx].first) += *(recvBuff+currentBuff+idx) * localIndex_p[idx].second; 
    179175        } 
    180176        currentBuff += countSize; 
Note: See TracChangeset for help on using the changeset viewer.