Changeset 1999 for XIOS/dev/dev_ym/XIOS_COUPLING/src/filter
- Timestamp:
- 01/03/21 18:00:43 (3 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/filter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/transform_filter.cpp
r1984 r1999 1 1 #include "transform_filter.hpp" 2 #include "grid_algorithm.hpp" 2 3 3 4 namespace xios 4 5 { 5 6 6 CTransformFilter::CTransformFilter( CGarbageCollector& gc, CGenericAlgorithmTransformation* algo, int dimBefore, int dimAfter, 7 bool detectMissingValues, double defaultValue) 8 : CFilter(gc, 1, this), algorithm_(algo), dimBefore_(dimBefore), dimAfter_(dimAfter), 7 CTransformFilter::CTransformFilter( CGarbageCollector& gc, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) 8 : CFilter(gc, 1, this), algorithm_(algo), 9 9 detectMissingValues_(detectMissingValues), defaultValue_(defaultValue) 10 10 { … … 20 20 packet->status = data[0]->status; 21 21 22 if (packet->status == CDataPacket::NO_ERROR) algorithm_->apply(d imBefore_, dimAfter_, data[0]->data, packet->data);22 if (packet->status == CDataPacket::NO_ERROR) algorithm_->apply(data[0]->data, packet->data); 23 23 return packet; 24 24 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/transform_filter.hpp
r1984 r1999 3 3 4 4 #include "filter.hpp" 5 #include "g eneric_algorithm_transformation.hpp"5 #include "grid_algorithm.hpp" 6 6 7 7 namespace xios … … 15 15 public: 16 16 17 CTransformFilter(CGarbageCollector& gc, CGenericAlgorithmTransformation* algo, int dimBefore, int dimAfter, 18 bool detectMissingValues, double defaultValue) ; 17 CTransformFilter(CGarbageCollector& gc, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) ; 19 18 20 19 protected: … … 27 26 private : 28 27 29 CGenericAlgorithmTransformation* algorithm_ ; 30 int dimBefore_ ; 31 int dimAfter_ ; 28 CGridAlgorithm* algorithm_ ; 32 29 bool detectMissingValues_ ; 33 30 bool defaultValue_ ;
Note: See TracChangeset
for help on using the changeset viewer.