Changeset 888 for XIOS/trunk/src/filter/spatial_transform_filter.cpp
- Timestamp:
- 07/05/16 15:59:10 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/spatial_transform_filter.cpp
r873 r888 122 122 const std::list<size_t>& listNbLocalIndexToReceive = gridTransformation->getNbLocalIndexToReceiveOnGridDest(); 123 123 const std::list<std::vector<bool> >& listLocalIndexMaskOnDest = gridTransformation->getLocalMaskIndexOnGridDest(); 124 const std::vector<CGenericAlgorithmTransformation*>& listAlgos = gridTransformation->getAlgos(); 124 125 125 126 CArray<double,1> dataCurrentDest(dataSrc.copy()); … … 130 131 std::list<size_t>::const_iterator itNbListRecv = listNbLocalIndexToReceive.begin(); 131 132 std::list<std::vector<bool> >::const_iterator itLocalMaskIndexOnDest = listLocalIndexMaskOnDest.begin(); 132 133 for (; itListSend != iteListSend; ++itListSend, ++itListRecv, ++itNbListRecv, ++itLocalMaskIndexOnDest) 133 std::vector<CGenericAlgorithmTransformation*>::const_iterator itAlgo = listAlgos.begin(); 134 135 for (; itListSend != iteListSend; ++itListSend, ++itListRecv, ++itNbListRecv, ++itLocalMaskIndexOnDest, ++itAlgo) 134 136 { 135 137 CArray<double,1> dataCurrentSrc(dataCurrentDest); … … 189 191 else dataCurrentDest(i) = defaultValue; 190 192 193 std::vector<bool> localInitFlag(dataCurrentDest.size(), true); 191 194 currentBuff = 0; 192 195 for (itRecv = itbRecv; itRecv != iteRecv; ++itRecv) … … 194 197 int countSize = itRecv->second.size(); 195 198 const std::vector<std::pair<int,double> >& localIndex_p = itRecv->second; 196 for (int idx = 0; idx < countSize; ++idx) 197 { 198 dataCurrentDest(localIndex_p[idx].first) += *(recvBuff+currentBuff+idx) * localIndex_p[idx].second; 199 } 199 // for (int idx = 0; idx < countSize; ++idx) 200 // { 201 // dataCurrentDest(localIndex_p[idx].first) += *(recvBuff+currentBuff+idx) * localIndex_p[idx].second; 202 // } 203 (*itAlgo)->apply(localIndex_p, 204 recvBuff+currentBuff, 205 dataCurrentDest, 206 localInitFlag); 207 200 208 currentBuff += countSize; 201 209 }
Note: See TracChangeset
for help on using the changeset viewer.