Changeset 1246


Ignore:
Timestamp:
08/29/17 16:25:56 (3 years ago)
Author:
oabramkina
Message:

Undoing previous commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/filter/store_filter.cpp

    r1244 r1246  
    8787    if (detectMissingValues) 
    8888    { 
    89       const double nanValue = std::numeric_limits<double>::quiet_NaN(); 
    9089      const size_t nbData = packet->data.numElements(); 
    9190      for (size_t idx = 0; idx < nbData; ++idx) 
    9291      { 
    93         if (packet->data(idx)==missingValue) 
    94           packet->data(idx) = nanValue; 
     92        if (NumTraits<double>::isnan(packet->data(idx))) 
     93          packet->data(idx) = missingValue; 
    9594      } 
    9695    } 
Note: See TracChangeset for help on using the changeset viewer.