Changeset 1043


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

Location:
XIOS/trunk/src/transformation/Functions
Files:
4 edited

Legend:

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

    r1018 r1043  
    4141    int currentlocalIndex = 0; 
    4242    double currentWeight  = 0.0; 
     43 
     44    dataOut=std::numeric_limits<double>::quiet_NaN(); 
     45 
    4346    for (int idx = 0; idx < nbLocalIndex; ++idx) 
    4447    { 
  • XIOS/trunk/src/transformation/Functions/max_reduction.cpp

    r1018 r1043  
    3838  { 
    3939    int nbLocalIndex = localIndex.size(); 
    40     int currentlocalIndex = 0;     
     40    int currentlocalIndex = 0; 
     41    dataOut=std::numeric_limits<double>::quiet_NaN();     
    4142    for (int idx = 0; idx < nbLocalIndex; ++idx) 
    4243    { 
  • XIOS/trunk/src/transformation/Functions/min_reduction.cpp

    r1018 r1043  
    3939    int nbLocalIndex = localIndex.size(); 
    4040    int currentlocalIndex = 0; 
     41    dataOut=std::numeric_limits<double>::quiet_NaN(); 
    4142    for (int idx = 0; idx < nbLocalIndex; ++idx) 
    4243    { 
  • 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.