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

Branch EP merged with Dev_cmip6 @r1481

Location:
XIOS/dev/branch_openmp/src/filter
Files:
5 edited

Legend:

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

    r1460 r1482  
    2929      for (size_t idx = 0; idx < nbData; ++idx) 
    3030      { 
    31         if (NumTraits<double>::isnan(dataArray(idx))) 
     31        if (NumTraits<double>::isNan(dataArray(idx))) 
    3232          dataArray(idx) = missingValue; 
    3333      } 
  • XIOS/dev/branch_openmp/src/filter/spatial_transform_filter.cpp

    r1460 r1482  
    204204    bool ignoreMissingValue = false;  
    205205    double defaultValue = std::numeric_limits<double>::quiet_NaN(); 
    206     if (0 != dataDest.numElements()) ignoreMissingValue = NumTraits<double>::isnan(dataDest(0)); 
     206    if (0 != dataDest.numElements()) ignoreMissingValue = NumTraits<double>::isNan(dataDest(0)); 
    207207 
    208208    const std::list<CGridTransformation::SendingIndexGridSourceMap>& listLocalIndexSend = gridTransformation->getLocalIndexToSendFromGridSource(); 
  • XIOS/dev/branch_openmp/src/filter/store_filter.cpp

    r1460 r1482  
    9393      for (size_t idx = 0; idx < nbData; ++idx) 
    9494      { 
    95         if (NumTraits<double>::isnan(packet->data(idx))) 
     95        if (NumTraits<double>::isNan(packet->data(idx))) 
    9696          packet->data(idx) = missingValue; 
    9797      } 
  • 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 
  • XIOS/dev/branch_openmp/src/filter/temporal_filter.hpp

    r1460 r1482  
    6767      CDate nextSamplingDate; //!< The date of the next sampling 
    6868      int nbOperationDates; //!< The number of times an operation is performed 
     69      int nbSamplingDates; 
    6970//      CDate nextOperationDate; //!< The date of the next operation 
    7071      bool isFirstOperation; //!< True before the first operation was been computed 
Note: See TracChangeset for help on using the changeset viewer.