Changeset 1123
- Timestamp:
- 05/05/17 08:58:36 (7 years ago)
- Location:
- XIOS/trunk/src/filter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/temporal_filter.cpp
r1122 r1123 12 12 : CFilter(gc, 1, this) 13 13 , functor(createFunctor(opId, ignoreMissingValue, missingValue, tmpData)) 14 , samplingFreq(samplingFreq) 14 // If we can optimize the sampling when dealing with an instant functor we do it 15 , samplingFreq((functor->timeType() == func::CFunctor::instant && samplingFreq == TimeStep && samplingOffset == NoneDu) ? opFreq : samplingFreq) 16 , samplingOffset((functor->timeType() == func::CFunctor::instant && samplingFreq == TimeStep && samplingOffset == NoneDu) ? opFreq - initDate.getRelCalendar().getTimeStep() : samplingOffset) 15 17 , opFreq(opFreq) 16 , nextSamplingDate(initDate + samplingOffset + initDate.getRelCalendar().getTimeStep())17 , nextOperationDate(initDate + samplingOffset + opFreq)18 , nextSamplingDate(initDate + this->samplingOffset + initDate.getRelCalendar().getTimeStep()) 19 , nextOperationDate(initDate + this->samplingOffset + opFreq) 18 20 , isFirstOperation(true) 19 21 , isOnceOperation(functor->timeType() == func::CFunctor::once) -
XIOS/trunk/src/filter/temporal_filter.hpp
r1122 r1123 51 51 CArray<double, 1> tmpData; //!< The array of data used for temporary storage 52 52 const CDuration samplingFreq; //!< The sampling frequency, i.e. the frequency at which the input data will be used 53 const CDuration samplingOffset; //!< The sampling offset, i.e. the offset after which the input data will be used 53 54 const CDuration opFreq; //!< The operation frequency, i.e. the frequency at which the output data will be computed 54 55 CDate nextSamplingDate; //!< The date of the next sampling
Note: See TracChangeset
for help on using the changeset viewer.