Changeset 1245


Ignore:
Timestamp:
08/29/17 15:00:35 (3 years ago)
Author:
oabramkina
Message:

Trunk: fixing a bug in missing_values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/store_filter.cpp

    r1186 r1245  
    8787    if (detectMissingValues) 
    8888    { 
     89      const double nanValue = std::numeric_limits<double>::quiet_NaN(); 
    8990      const size_t nbData = packet->data.numElements(); 
    9091      for (size_t idx = 0; idx < nbData; ++idx) 
    9192      { 
    92         if (NumTraits<double>::isnan(packet->data(idx))) 
    93           packet->data(idx) = missingValue; 
     93        if (packet->data(idx)==missingValue) 
     94          packet->data(idx) = nanValue; 
    9495      } 
    9596    } 
Note: See TracChangeset for help on using the changeset viewer.