Ignore:
Timestamp:
09/11/17 17:06:38 (3 years ago)
Author:
ymipsl
Message:

Buf fix in reduction. Missing value update was not set correctly

YM

File:
1 edited

Legend:

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

    r1158 r1260  
    3131                                       CArray<double,1>& dataOut, 
    3232                                       std::vector<bool>& flagInitial,                      
    33                                        bool ignoreMissingValue) 
     33                                       bool ignoreMissingValue, bool firstPass) 
    3434{ 
    3535  if (resetWeight_) { weights_.resize(flagInitial.size()); weights_ = 1.0; resetWeight_ = false; }   
     
    4141    double currentWeight  = 0.0; 
    4242 
    43     dataOut=std::numeric_limits<double>::quiet_NaN(); 
     43    if (firstPass) dataOut=std::numeric_limits<double>::quiet_NaN(); 
    4444 
    4545    for (int idx = 0; idx < nbLocalIndex; ++idx) 
Note: See TracChangeset for help on using the changeset viewer.