- Timestamp:
- 06/22/15 13:36:37 (9 years ago)
- Location:
- XIOS/trunk/src/transformation
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/axis_algorithm_transformation.cpp
r623 r624 1 /*! 2 \file axis_algorithm_transformation.hpp 3 \author Ha NGUYEN 4 \since 14 May 2015 5 \date 09 June 2015 6 7 \brief Interface for all axis transformation algorithms. 8 */ 9 1 10 #include "axis_algorithm_transformation.hpp" 2 #include "axis_ inverse.hpp"3 #include "axis_ zoom.hpp"11 #include "axis_algorithm_inverse.hpp" 12 #include "axis_algorithm_zoom.hpp" 4 13 5 14 namespace xios { … … 8 17 : CGenericAlgorithmTransformation() 9 18 { 10 // if (axisDestination->size.getValue() != axisSource->size.getValue())11 // {12 // ERROR("CAxisZoom::CAxisZoom(CAxis* axisDestination, CAxis* axisSource)",13 // << "Two axis have different size"14 // << "Size of axis source " <<axisSource->getId() << " is " << axisSource->size.getValue() << std::endl15 // << "Size of axis destionation " <<axisDestination->getId() << " is " << axisDestination->size.getValue());16 // }17 //18 //19 // axisDestGlobalSize_ = axisDestination->size.getValue();20 // int niDest = axisDestination->ni.getValue();21 // int ibeginDest = axisDestination->ibegin.getValue();22 //23 // for (int idx = 0; idx < niDest; ++idx) axisDestGlobalIndex_.push_back(ibeginDest+idx);24 19 } 25 20 26 21 CAxisAlgorithmTransformation::~CAxisAlgorithmTransformation() 27 22 { 28 // for (int idx = 0; idx < algosOfAnAxis_.size(); ++idx) delete algosOfAnAxis_[idx];29 23 } 30 24 31 25 void CAxisAlgorithmTransformation::computeIndexSourceMapping() 32 26 { 33 // if (!algosOfAnAxis_.empty())34 // {35 // algosOfAnAxis_[0]->computeIndexSourceMapping(this->transformationMapping_);36 // for (int idx = 1; idx < algosOfAnAxis_.size(); ++idx)37 // {38 // algosOfAnAxis_[idx]->computeIndexSourceMapping(algosOfAnAxis_[idx-1]->getTransformationMapping());39 // }40 // this->transformationMapping_ = algosOfAnAxis_[algosOfAnAxis_.size()-1]->getTransformationMapping();41 // }42 27 } 43 28 … … 162 147 } 163 148 } 164 165 166 149 }
Note: See TracChangeset
for help on using the changeset viewer.