- Timestamp:
- 11/23/18 14:48:14 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/transformation/axis_algorithm_reduce_axis.cpp
r1314 r1612 24 24 std::map<int, int>& elementPositionInGridDst2AxisPosition, 25 25 std::map<int, int>& elementPositionInGridDst2DomainPosition) 26 TRY 26 27 { 27 28 std::vector<CAxis*> axisListDestP = gridDst->getAxis(); … … 34 35 return (new CAxisAlgorithmReduceAxis(axisListDestP[axisDstIndex], axisListSrcP[axisSrcIndex], reduceAxis)); 35 36 } 37 CATCH 36 38 37 39 bool CAxisAlgorithmReduceAxis::registerTrans() 40 TRY 38 41 { 39 42 CGridTransformationFactory<CAxis>::registerTransformation(TRANS_REDUCE_AXIS_TO_AXIS, create); 40 43 } 44 CATCH 41 45 42 46 43 47 CAxisAlgorithmReduceAxis::CAxisAlgorithmReduceAxis(CAxis* axisDestination, CAxis* axisSource, CReduceAxisToAxis* algo) 44 48 : CAxisAlgorithmTransformation(axisDestination, axisSource), reduction_(0) 49 TRY 45 50 { 46 51 eliminateRedondantSrc_= false ; … … 71 76 reduction_ = CReductionAlgorithm::createOperation(CReductionAlgorithm::ReductionOperations[op]); 72 77 } 78 CATCH 73 79 74 80 void CAxisAlgorithmReduceAxis::apply(const std::vector<std::pair<int,double> >& localIndex, … … 77 83 std::vector<bool>& flagInitial, 78 84 bool ignoreMissingValue, bool firstPass) 85 TRY 79 86 { 80 87 reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 81 88 } 89 CATCH 82 90 83 91 void CAxisAlgorithmReduceAxis::updateData(CArray<double,1>& dataOut) 92 TRY 84 93 { 85 94 reduction_->updateData(dataOut); 86 95 } 96 CATCH 87 97 88 98 CAxisAlgorithmReduceAxis::~CAxisAlgorithmReduceAxis() 99 TRY 89 100 { 90 101 if (0 != reduction_) delete reduction_; 91 102 } 103 CATCH 92 104 93 105 void CAxisAlgorithmReduceAxis::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 106 TRY 94 107 { 95 108 this->transformationMapping_.resize(1); … … 109 122 } 110 123 } 124 CATCH 111 125 112 126 }
Note: See TracChangeset
for help on using the changeset viewer.