Ignore:
Timestamp:
02/01/17 13:29:26 (4 years ago)
Author:
ymipsl
Message:

Undefined value after spatial domain reduction will apear as missing value.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/Functions/sum_reduction.cpp

    r1018 r1043  
    3434{ 
    3535  bool hasMissingValue = NumTraits<double>::isnan(defaultValue); 
     36 
    3637  if (hasMissingValue) 
    3738  { 
    3839    int nbLocalIndex = localIndex.size(); 
    39     int currentlocalIndex = 0;     
     40    int currentlocalIndex = 0; 
     41 
     42    dataOut=std::numeric_limits<double>::quiet_NaN(); 
     43   
    4044    for (int idx = 0; idx < nbLocalIndex; ++idx) 
    4145    { 
Note: See TracChangeset for help on using the changeset viewer.