Changeset 1123 for XIOS/trunk/src/filter/temporal_filter.cpp
- Timestamp:
- 05/05/17 08:58:36 (8 years ago)
- File:
-
- 1 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)
Note: See TracChangeset
for help on using the changeset viewer.