Ignore:
Timestamp:
04/13/18 16:25:46 (6 years ago)
Author:
yushan
Message:

Branch EP merged with Dev_cmip6 @r1481

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/filter/temporal_filter.cpp

    r1460 r1482  
    1717    , samplingOffset(samplingOffset) 
    1818    , opFreq(opFreq) 
    19     , offsetMonth({0, this->samplingOffset.month, 0, 0, 0, 0, 0}) 
    20     , offsetAllButMonth({this->samplingOffset.year, 0 , this->samplingOffset.day, 
    21                        this->samplingOffset.hour, this->samplingOffset.minute, 
    22                        this->samplingOffset.second, this->samplingOffset.timestep}) 
     19    , offsetMonth(0, this->samplingOffset.month, 0, 0, 0, 0, 0) 
     20    , offsetAllButMonth(this->samplingOffset.year, 0 , this->samplingOffset.day, 
     21                        this->samplingOffset.hour, this->samplingOffset.minute, 
     22                        this->samplingOffset.second, this->samplingOffset.timestep) 
    2323    , initDate(initDate) 
    2424    , nextSamplingDate(initDate + (this->samplingOffset + initDate.getRelCalendar().getTimeStep())) 
    2525    , nbOperationDates(1) 
     26    , nbSamplingDates(0) 
    2627//    , nextOperationDate(initDate + opFreq + this->samplingOffset) 
    2728    , isFirstOperation(true) 
     
    4849      if (usePacket) 
    4950      { 
     51        nbSamplingDates ++; 
    5052        if (!copyLess) 
    5153        { 
     
    5658        } 
    5759 
    58         nextSamplingDate = nextSamplingDate + samplingFreq; 
     60        nextSamplingDate = ((initDate + offsetMonth) + nbSamplingDates * samplingFreq) + offsetAllButMonth + initDate.getRelCalendar().getTimeStep(); 
    5961      } 
    6062 
Note: See TracChangeset for help on using the changeset viewer.