- Timestamp:
- 01/31/19 12:12:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/transformation/scalar_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<CScalar*> scalarListDestP = gridDst->getScalars(); … … 35 36 return (new CScalarAlgorithmReduceDomain(scalarListDestP[scalarDstIndex], domainListSrcP[domainSrcIndex], reduceDomain)); 36 37 } 38 CATCH 37 39 38 40 bool CScalarAlgorithmReduceDomain::registerTrans() 41 TRY 39 42 { 40 43 CGridTransformationFactory<CScalar>::registerTransformation(TRANS_REDUCE_DOMAIN_TO_SCALAR, create); 41 44 } 45 CATCH 42 46 43 47 CScalarAlgorithmReduceDomain::CScalarAlgorithmReduceDomain(CScalar* scalarDestination, CDomain* domainSource, CReduceDomainToScalar* algo) 44 48 : CScalarAlgorithmTransformation(scalarDestination, domainSource), 45 49 reduction_(0) 50 TRY 46 51 { 47 52 algo->checkValid(scalarDestination, domainSource); … … 83 88 local = algo->local ; 84 89 } 90 CATCH 85 91 86 92 void CScalarAlgorithmReduceDomain::apply(const std::vector<std::pair<int,double> >& localIndex, … … 89 95 std::vector<bool>& flagInitial, 90 96 bool ignoreMissingValue, bool firstPass) 97 TRY 91 98 { 92 99 reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 93 100 } 101 CATCH 94 102 95 103 void CScalarAlgorithmReduceDomain::updateData(CArray<double,1>& dataOut) 104 TRY 96 105 { 97 106 reduction_->updateData(dataOut); 98 107 } 108 CATCH 99 109 100 110 CScalarAlgorithmReduceDomain::~CScalarAlgorithmReduceDomain() 111 TRY 101 112 { 102 113 if (0 != reduction_) delete reduction_; 103 114 } 115 CATCH 104 116 105 117 void CScalarAlgorithmReduceDomain::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 118 TRY 106 119 { 107 120 this->transformationMapping_.resize(1); … … 140 153 141 154 } 155 CATCH 142 156 143 157 }
Note: See TracChangeset
for help on using the changeset viewer.