Changeset 832 for XIOS/trunk/src/transformation/grid_transformation.cpp
- Timestamp:
- 03/23/16 16:11:13 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/grid_transformation.cpp
r831 r832 25 25 : gridSource_(source), gridDestination_(destination), originalGridSource_(source), 26 26 algoTypes_(), nbAlgos_(0), currentGridIndexToOriginalGridIndex_(), tempGrids_(), 27 auxInputs_(), dynamicalTransformation_(false) 27 auxInputs_(), dynamicalTransformation_(false), timeStamp_() 28 28 29 29 { … … 356 356 -) Make current grid destination become grid source in the next transformation 357 357 */ 358 void CGridTransformation::computeAll(const std::vector<CArray<double,1>* >& dataAuxInputs )358 void CGridTransformation::computeAll(const std::vector<CArray<double,1>* >& dataAuxInputs, Time timeStamp) 359 359 { 360 360 if (nbAlgos_ < 1) return; 361 361 if (!auxInputs_.empty() && !dynamicalTransformation_) { dynamicalTransformation_ = true; return; } 362 if (dynamicalTransformation_) DestinationIndexMap().swap(currentGridIndexToOriginalGridIndex_); // Reset map 362 if (dynamicalTransformation_) 363 { 364 if (timeStamp_.insert(timeStamp).second) 365 DestinationIndexMap().swap(currentGridIndexToOriginalGridIndex_); // Reset map 366 else 367 return; 368 } 363 369 364 370 CContext* context = CContext::getCurrent();
Note: See TracChangeset
for help on using the changeset viewer.