Changeset 897
- Timestamp:
- 07/11/16 17:36:11 (7 years ago)
- Location:
- XIOS/trunk/src/transformation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/grid_transformation_selector.cpp
r889 r897 14 14 15 15 CGridTransformationSelector::CGridTransformationSelector(CGrid* destination, CGrid* source, TransformationType type) 16 : gridSource_(source), gridDestination_(destination), 16 : gridSource_(source), gridDestination_(destination), isSameGrid_(false), 17 17 listAlgos_(), algoTypes_(), nbNormalAlgos_(0), nbSpecialAlgos_(0), auxInputs_() 18 18 { 19 if (0 == source) gridSource_ = gridDestination_; 19 if (0 == source) 20 { gridSource_ = gridDestination_; isSameGrid_ = true; } 20 21 21 22 //Verify the compatibity between two grids … … 162 163 // If source and destination grid share the same scalar 163 164 if ((-1 != scalarDstPos) && (-1 != scalarSrcPos) && 164 (scalarListDestP[scalarDstPos] == scalarListSrcP[scalarSrcPos]) ) return;165 (scalarListDestP[scalarDstPos] == scalarListSrcP[scalarSrcPos]) && !isSameGrid_) return; 165 166 166 167 if (scalarListDestP[scalarDstPos]->hasTransformation()) … … 203 204 // If source and destination grid share the same axis 204 205 if ((-1 != axisDstPos) && (-1 != axisSrcPos) && 205 (axisListDestP[axisDstPos] == axisListSrcP[axisSrcPos]) ) return;206 (axisListDestP[axisDstPos] == axisListSrcP[axisSrcPos]) && !isSameGrid_) return; 206 207 207 208 if (axisListDestP[axisDstPos]->hasTransformation()) … … 243 244 // If source and destination grid share the same domain 244 245 if ((-1 != domDstPos) && (-1 != domSrcPos) && 245 (domListDestP[domDstPos] == domListSrcP[domSrcPos]) ) return;246 (domListDestP[domDstPos] == domListSrcP[domSrcPos]) && !isSameGrid_) return; 246 247 247 248 if (domListDestP[domDstPos]->hasTransformation()) -
XIOS/trunk/src/transformation/grid_transformation_selector.hpp
r889 r897 70 70 CGrid* gridDestination_; 71 71 72 //! Grid source and grid destination it's the same 73 bool isSameGrid_; 74 72 75 protected: 73 76 //! List of algorithm types and their order
Note: See TracChangeset
for help on using the changeset viewer.