Changeset 1440 for XIOS/dev/XIOS_DEV_CMIP6/src/filter/temporal_filter.cpp
- Timestamp:
- 02/23/18 11:15:33 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/filter/temporal_filter.cpp
r1406 r1440 5 5 namespace xios 6 6 { 7 static func::CFunctor* createFunctor(const std::string& opId, bool ignoreMissingValue, double missingValue,CArray<double, 1>& tmpData);7 static func::CFunctor* createFunctor(const std::string& opId, bool ignoreMissingValue, CArray<double, 1>& tmpData); 8 8 9 9 CTemporalFilter::CTemporalFilter(CGarbageCollector& gc, const std::string& opId, 10 10 const CDate& initDate, const CDuration samplingFreq, const CDuration samplingOffset, const CDuration opFreq, 11 bool ignoreMissingValue /*= false*/ , double missingValue /*= 0.0*/)11 bool ignoreMissingValue /*= false*/) 12 12 : CFilter(gc, 1, this) 13 , functor(createFunctor(opId, ignoreMissingValue, missingValue,tmpData))13 , functor(createFunctor(opId, ignoreMissingValue, tmpData)) 14 14 , isOnceOperation(functor->timeType() == func::CFunctor::once) 15 15 , isInstantOperation(functor->timeType() == func::CFunctor::instant) … … 95 95 } 96 96 97 static func::CFunctor* createFunctor(const std::string& opId, bool ignoreMissingValue, double missingValue,CArray<double, 1>& tmpData)97 static func::CFunctor* createFunctor(const std::string& opId, bool ignoreMissingValue, CArray<double, 1>& tmpData) 98 98 { 99 99 func::CFunctor* functor = NULL; 100 100 101 double defaultValue = ignoreMissingValue ? std::numeric_limits<double>::quiet_NaN() : missingValue;101 double defaultValue = std::numeric_limits<double>::quiet_NaN(); 102 102 103 103 #define DECLARE_FUNCTOR(MType, mtype) \
Note: See TracChangeset
for help on using the changeset viewer.