- 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_domain.cpp
r1299 r1612 25 25 std::map<int, int>& elementPositionInGridDst2AxisPosition, 26 26 std::map<int, int>& elementPositionInGridDst2DomainPosition) 27 TRY 27 28 { 28 29 std::vector<CAxis*> axisListDestP = gridDst->getAxis(); … … 35 36 return (new CAxisAlgorithmReduceDomain(axisListDestP[axisDstIndex], domainListSrcP[domainSrcIndex], reduceDomain)); 36 37 } 38 CATCH 37 39 38 40 bool CAxisAlgorithmReduceDomain::registerTrans() 41 TRY 39 42 { 40 43 CGridTransformationFactory<CAxis>::registerTransformation(TRANS_REDUCE_DOMAIN_TO_AXIS, create); 41 44 } 45 CATCH 42 46 43 47 44 48 CAxisAlgorithmReduceDomain::CAxisAlgorithmReduceDomain(CAxis* axisDestination, CDomain* domainSource, CReduceDomainToAxis* algo) 45 49 : CAxisAlgorithmTransformation(axisDestination, domainSource), reduction_(0) 50 TRY 46 51 { 47 52 algo->checkValid(axisDestination, domainSource); … … 73 78 local = algo->local ; 74 79 } 80 CATCH 75 81 76 82 void CAxisAlgorithmReduceDomain::apply(const std::vector<std::pair<int,double> >& localIndex, … … 79 85 std::vector<bool>& flagInitial, 80 86 bool ignoreMissingValue, bool firstPass) 87 TRY 81 88 { 82 89 reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 83 90 } 91 CATCH 84 92 85 93 void CAxisAlgorithmReduceDomain::updateData(CArray<double,1>& dataOut) 94 TRY 86 95 { 87 96 reduction_->updateData(dataOut); 88 97 } 98 CATCH 89 99 90 100 CAxisAlgorithmReduceDomain::~CAxisAlgorithmReduceDomain() 101 TRY 91 102 { 92 103 if (0 != reduction_) delete reduction_; 93 104 } 105 CATCH 94 106 95 107 void CAxisAlgorithmReduceDomain::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 108 TRY 96 109 { 97 110 this->transformationMapping_.resize(1); … … 174 187 {} 175 188 } 189 CATCH 176 190 177 191 }
Note: See TracChangeset
for help on using the changeset viewer.