- Timestamp:
- 11/23/18 14:48:14 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/transformation/scalar_algorithm_reduce_domain.cpp
r1396 r1612 26 26 std::map<int, int>& elementPositionInGridDst2AxisPosition, 27 27 std::map<int, int>& elementPositionInGridDst2DomainPosition) 28 TRY 28 29 { 29 30 std::vector<CScalar*> scalarListDestP = gridDst->getScalars(); … … 36 37 return (new CScalarAlgorithmReduceDomain(scalarListDestP[scalarDstIndex], domainListSrcP[domainSrcIndex], reduceDomain)); 37 38 } 39 CATCH 38 40 39 41 bool CScalarAlgorithmReduceDomain::registerTrans() 42 TRY 40 43 { 41 44 CGridTransformationFactory<CScalar>::registerTransformation(TRANS_REDUCE_DOMAIN_TO_SCALAR, create); 42 45 } 46 CATCH 43 47 44 48 CScalarAlgorithmReduceDomain::CScalarAlgorithmReduceDomain(CScalar* scalarDestination, CDomain* domainSource, CReduceDomainToScalar* algo) 45 49 : CScalarAlgorithmTransformation(scalarDestination, domainSource), 46 50 reduction_(0) 51 TRY 47 52 { 48 53 algo->checkValid(scalarDestination, domainSource); … … 80 85 local = algo->local ; 81 86 } 87 CATCH 82 88 83 89 void CScalarAlgorithmReduceDomain::apply(const std::vector<std::pair<int,double> >& localIndex, … … 86 92 std::vector<bool>& flagInitial, 87 93 bool ignoreMissingValue, bool firstPass) 94 TRY 88 95 { 89 96 reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 90 97 } 98 CATCH 91 99 92 100 void CScalarAlgorithmReduceDomain::updateData(CArray<double,1>& dataOut) 101 TRY 93 102 { 94 103 reduction_->updateData(dataOut); 95 104 } 105 CATCH 96 106 97 107 CScalarAlgorithmReduceDomain::~CScalarAlgorithmReduceDomain() 108 TRY 98 109 { 99 110 if (0 != reduction_) delete reduction_; 100 111 } 112 CATCH 101 113 102 114 void CScalarAlgorithmReduceDomain::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 115 TRY 103 116 { 104 117 this->transformationMapping_.resize(1); … … 137 150 138 151 } 152 CATCH 139 153 140 154 }
Note: See TracChangeset
for help on using the changeset viewer.