- 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_interpolate.cpp
r1412 r1612 29 29 std::map<int, int>& elementPositionInGridDst2AxisPosition, 30 30 std::map<int, int>& elementPositionInGridDst2DomainPosition) 31 TRY 31 32 { 32 33 std::vector<CAxis*> axisListDestP = gridDst->getAxis(); … … 39 40 return (new CAxisAlgorithmInterpolate(axisListDestP[axisDstIndex], axisListSrcP[axisSrcIndex], interpolateAxis)); 40 41 } 42 CATCH 41 43 42 44 bool CAxisAlgorithmInterpolate::registerTrans() 45 TRY 43 46 { 44 47 CGridTransformationFactory<CAxis>::registerTransformation(TRANS_INTERPOLATE_AXIS, create); 45 48 } 46 49 CATCH 47 50 48 51 CAxisAlgorithmInterpolate::CAxisAlgorithmInterpolate(CAxis* axisDestination, CAxis* axisSource, CInterpolateAxis* interpAxis) 49 52 : CAxisAlgorithmTransformation(axisDestination, axisSource), coordinate_(), transPosition_() 53 TRY 50 54 { 51 55 interpAxis->checkValid(axisSource); … … 58 62 } 59 63 } 64 CATCH 60 65 61 66 /*! … … 63 68 */ 64 69 void CAxisAlgorithmInterpolate::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 70 TRY 65 71 { 66 72 CTimer::get("CAxisAlgorithmInterpolate::computeIndexSourceMapping_").resume() ; … … 88 94 CTimer::get("CAxisAlgorithmInterpolate::computeIndexSourceMapping_").suspend() ; 89 95 } 96 CATCH 90 97 91 98 /*! … … 98 105 const std::vector<int>& indexVec, 99 106 int transPos) 107 TRY 100 108 { 101 109 std::vector<double>::const_iterator itb = axisValue.begin(), ite = axisValue.end(); … … 162 170 computeWeightedValueAndMapping(interpolatingIndexValues, transPos); 163 171 } 172 CATCH 164 173 165 174 /*! … … 168 177 */ 169 178 void CAxisAlgorithmInterpolate::computeWeightedValueAndMapping(const std::map<int, std::vector<std::pair<int,double> > >& interpolatingIndexValues, int transPos) 179 TRY 170 180 { 171 181 TransformationIndexMap& transMap = this->transformationMapping_[transPos]; … … 205 215 206 216 } 217 CATCH 207 218 208 219 /*! … … 213 224 void CAxisAlgorithmInterpolate::retrieveAllAxisValue(const CArray<double,1>& axisValue, const CArray<bool,1>& axisMask, 214 225 std::vector<double>& recvBuff, std::vector<int>& indexVec) 226 TRY 215 227 { 216 228 CContext* context = CContext::getCurrent(); … … 282 294 } 283 295 } 296 CATCH 284 297 285 298 /*! … … 289 302 void CAxisAlgorithmInterpolate::fillInAxisValue(std::vector<CArray<double,1> >& vecAxisValue, 290 303 const std::vector<CArray<double,1>* >& dataAuxInputs) 304 TRY 291 305 { 292 306 if (coordinate_.empty()) … … 377 391 } 378 392 } 379 380 } 393 CATCH 394 395 }
Note: See TracChangeset
for help on using the changeset viewer.