Changeset 2313 for XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation
- Timestamp:
- 03/21/22 15:27:07 (2 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/algorithm_transformation_weight.cpp
r2267 r2313 6 6 7 7 8 void CAlgorithmTransformationWeight::computeAlgorithm(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView )8 void CAlgorithmTransformationWeight::computeAlgorithm(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView, bool detectMissingValue, bool renormalize) 9 9 { 10 10 this->computeRecvElement(srcView, dstView) ; 11 weightTransformConnector_ = make_shared<CWeightTransformConnector>(recvElement_->getView(CElementView::FULL), dstView, transformationMapping_, transformationWeight_ ) ;11 weightTransformConnector_ = make_shared<CWeightTransformConnector>(recvElement_->getView(CElementView::FULL), dstView, transformationMapping_, transformationWeight_, detectMissingValue, renormalize) ; 12 12 } 13 13 -
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/algorithm_transformation_weight.hpp
r2267 r2313 15 15 public: 16 16 17 CAlgorithmTransformationWeight(bool isSource) : CGenericAlgorithmTransformation(isSource) {} 17 CAlgorithmTransformationWeight(bool isSource) : CGenericAlgorithmTransformation(isSource) {} 18 18 19 virtual ~CAlgorithmTransformationWeight() {}; 19 20 virtual void apply(int dimBefore, int dimAfter, const CArray<double,1>& dataIn, CArray<double,1>& dataOut); 20 21 virtual void computeRecvElement(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView); 21 22 protected: 22 virtual void computeAlgorithm(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView ) ;23 virtual void computeAlgorithm(shared_ptr<CLocalView> srcView, shared_ptr<CLocalView> dstView, bool detectMissingValue, bool renormalize) ; 23 24 24 25 //! Map between global index of destination element and source element -
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/axis_algorithm/axis_algorithm_interpolate.cpp
r2270 r2313 68 68 std::vector<CArray<double,1>* > dataAuxInputs ; 69 69 computeRemap(dataAuxInputs) ; 70 this->computeAlgorithm(axisSource->getLocalView(CElementView::WORKFLOW), axisDestination->getLocalView(CElementView::WORKFLOW) ) ;70 this->computeAlgorithm(axisSource->getLocalView(CElementView::WORKFLOW), axisDestination->getLocalView(CElementView::WORKFLOW), false, false) ; 71 71 } 72 72 CATCH -
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/domain_algorithm/domain_algorithm_interpolate.cpp
r2270 r2313 102 102 else computeRemap(); 103 103 104 this->computeAlgorithm(domainSource->getLocalView(CElementView::WORKFLOW), domainDestination->getLocalView(CElementView::WORKFLOW) ) ;104 this->computeAlgorithm(domainSource->getLocalView(CElementView::WORKFLOW), domainDestination->getLocalView(CElementView::WORKFLOW), detectMissingValue, renormalize) ; 105 105 106 106 }
Note: See TracChangeset
for help on using the changeset viewer.