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