- 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_domain.cpp
r1601 r1646 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); … … 77 82 local = algo->local ; 78 83 } 84 CATCH 79 85 80 86 void CAxisAlgorithmReduceDomain::apply(const std::vector<std::pair<int,double> >& localIndex, … … 83 89 std::vector<bool>& flagInitial, 84 90 bool ignoreMissingValue, bool firstPass) 91 TRY 85 92 { 86 93 reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 87 94 } 95 CATCH 88 96 89 97 void CAxisAlgorithmReduceDomain::updateData(CArray<double,1>& dataOut) 98 TRY 90 99 { 91 100 reduction_->updateData(dataOut); 92 101 } 102 CATCH 93 103 94 104 CAxisAlgorithmReduceDomain::~CAxisAlgorithmReduceDomain() 105 TRY 95 106 { 96 107 if (0 != reduction_) delete reduction_; 97 108 } 109 CATCH 98 110 99 111 void CAxisAlgorithmReduceDomain::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 112 TRY 100 113 { 101 114 this->transformationMapping_.resize(1); … … 178 191 {} 179 192 } 193 CATCH 180 194 181 195 }
Note: See TracChangeset
for help on using the changeset viewer.