Changeset 1482 for XIOS/dev/branch_openmp/src/filter
- Timestamp:
- 04/13/18 16:25:46 (6 years ago)
- 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 29 29 for (size_t idx = 0; idx < nbData; ++idx) 30 30 { 31 if (NumTraits<double>::is nan(dataArray(idx)))31 if (NumTraits<double>::isNan(dataArray(idx))) 32 32 dataArray(idx) = missingValue; 33 33 } -
XIOS/dev/branch_openmp/src/filter/spatial_transform_filter.cpp
r1460 r1482 204 204 bool ignoreMissingValue = false; 205 205 double defaultValue = std::numeric_limits<double>::quiet_NaN(); 206 if (0 != dataDest.numElements()) ignoreMissingValue = NumTraits<double>::is nan(dataDest(0));206 if (0 != dataDest.numElements()) ignoreMissingValue = NumTraits<double>::isNan(dataDest(0)); 207 207 208 208 const std::list<CGridTransformation::SendingIndexGridSourceMap>& listLocalIndexSend = gridTransformation->getLocalIndexToSendFromGridSource(); -
XIOS/dev/branch_openmp/src/filter/store_filter.cpp
r1460 r1482 93 93 for (size_t idx = 0; idx < nbData; ++idx) 94 94 { 95 if (NumTraits<double>::is nan(packet->data(idx)))95 if (NumTraits<double>::isNan(packet->data(idx))) 96 96 packet->data(idx) = missingValue; 97 97 } -
XIOS/dev/branch_openmp/src/filter/temporal_filter.cpp
r1460 r1482 17 17 , samplingOffset(samplingOffset) 18 18 , 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) 23 23 , initDate(initDate) 24 24 , nextSamplingDate(initDate + (this->samplingOffset + initDate.getRelCalendar().getTimeStep())) 25 25 , nbOperationDates(1) 26 , nbSamplingDates(0) 26 27 // , nextOperationDate(initDate + opFreq + this->samplingOffset) 27 28 , isFirstOperation(true) … … 48 49 if (usePacket) 49 50 { 51 nbSamplingDates ++; 50 52 if (!copyLess) 51 53 { … … 56 58 } 57 59 58 nextSamplingDate = nextSamplingDate + samplingFreq;60 nextSamplingDate = ((initDate + offsetMonth) + nbSamplingDates * samplingFreq) + offsetAllButMonth + initDate.getRelCalendar().getTimeStep(); 59 61 } 60 62 -
XIOS/dev/branch_openmp/src/filter/temporal_filter.hpp
r1460 r1482 67 67 CDate nextSamplingDate; //!< The date of the next sampling 68 68 int nbOperationDates; //!< The number of times an operation is performed 69 int nbSamplingDates; 69 70 // CDate nextOperationDate; //!< The date of the next operation 70 71 bool isFirstOperation; //!< True before the first operation was been computed
Note: See TracChangeset
for help on using the changeset viewer.