Changeset 623 for XIOS/trunk/src/filter/axis_algorithm_inverse.cpp
- Timestamp:
- 06/22/15 13:36:31 (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/axis_algorithm_inverse.cpp
r622 r623 1 #include "axis_ inverse.hpp"1 #include "axis_algorithm_inverse.hpp" 2 2 3 3 namespace xios { 4 4 5 CAxis Inverse::CAxisInverse(CAxis* axisDestination, CAxis* axisSource)5 CAxisAlgorithmInverse::CAxisAlgorithmInverse(CAxis* axisDestination, CAxis* axisSource) 6 6 : CAxisAlgorithmTransformation(axisDestination, axisSource) 7 7 { 8 8 if (axisDestination->size.getValue() != axisSource->size.getValue()) 9 9 { 10 ERROR("CAxis Inverse::CAxisInverse(CAxis* axisDestination, CAxis* axisSource)",10 ERROR("CAxisAlgorithmInverse::CAxisAlgorithmInverse(CAxis* axisDestination, CAxis* axisSource)", 11 11 << "Two axis have different size" 12 12 << "Size of axis source " <<axisSource->getId() << " is " << axisSource->size.getValue() << std::endl … … 19 19 int ibeginDest = axisDestination->ibegin.getValue(); 20 20 21 for (int idx = 0; idx < niDest; ++idx) axisDestGlobalIndex_.push_back(ibeginDest+idx); 21 for (int idx = 0; idx < niDest; ++idx) 22 if ((axisDestination->mask)(idx)) axisDestGlobalIndex_.push_back(ibeginDest+idx); 22 23 this->computeIndexSourceMapping(); 23 24 } 24 25 25 void CAxis Inverse::computeIndexSourceMapping()26 void CAxisAlgorithmInverse::computeIndexSourceMapping() 26 27 { 27 28 std::map<int, std::vector<int> >& transMap = this->transformationMapping_;
Note: See TracChangeset
for help on using the changeset viewer.