Changeset 1076 for XIOS/trunk/src/transformation/Functions
- Timestamp:
- 03/16/17 15:04:53 (7 years ago)
- Location:
- XIOS/trunk/src/transformation/Functions
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/Functions/average_reduction.cpp
r1043 r1076 30 30 const double* dataInput, 31 31 CArray<double,1>& dataOut, 32 std::vector<bool>& flagInitial, 33 const double& defaultValue)32 std::vector<bool>& flagInitial, 33 bool ignoreMissingValue) 34 34 { 35 if (resetWeight_) { weights_.resize(flagInitial.size()); weights_ = 1.0; resetWeight_ = false; } 36 bool hasMissingValue = NumTraits<double>::isnan(defaultValue); 35 if (resetWeight_) { weights_.resize(flagInitial.size()); weights_ = 1.0; resetWeight_ = false; } 37 36 38 if ( hasMissingValue)37 if (ignoreMissingValue) 39 38 { 40 39 int nbLocalIndex = localIndex.size(); -
XIOS/trunk/src/transformation/Functions/average_reduction.hpp
r1018 r1076 26 26 const double* dataInput, 27 27 CArray<double,1>& dataOut, 28 std::vector<bool>& flagInitial, 29 const double& defaultValue);28 std::vector<bool>& flagInitial, 29 bool ignoreMissingValue); 30 30 31 31 virtual void updateData(CArray<double,1>& dataOut); -
XIOS/trunk/src/transformation/Functions/extract.cpp
r1018 r1076 30 30 CArray<double,1>& dataOut, 31 31 std::vector<bool>& flagInitial, 32 const double& defaultValue)32 bool ignoreMissingValue) 33 33 { 34 34 int nbLocalIndex = localIndex.size(); -
XIOS/trunk/src/transformation/Functions/extract.hpp
r1018 r1076 27 27 CArray<double,1>& dataOut, 28 28 std::vector<bool>& flagInitial, 29 const double& defaultValue);29 bool ignoreMissingValue); 30 30 31 31 virtual ~CExtractReductionAlgorithm() {} -
XIOS/trunk/src/transformation/Functions/max_reduction.cpp
r1043 r1076 31 31 CArray<double,1>& dataOut, 32 32 std::vector<bool>& flagInitial, 33 const double& defaultValue) 34 { 35 bool hasMissingValue = NumTraits<double>::isnan(defaultValue); 36 37 if (hasMissingValue) 33 bool ignoreMissingValue) 34 { 35 if (ignoreMissingValue) 38 36 { 39 37 int nbLocalIndex = localIndex.size(); -
XIOS/trunk/src/transformation/Functions/max_reduction.hpp
r1018 r1076 27 27 CArray<double,1>& dataOut, 28 28 std::vector<bool>& flagInitial, 29 const double& defaultValue);29 bool ignoreMissingValue); 30 30 31 31 virtual ~CMaxReductionAlgorithm() {} -
XIOS/trunk/src/transformation/Functions/min_reduction.cpp
r1043 r1076 31 31 CArray<double,1>& dataOut, 32 32 std::vector<bool>& flagInitial, 33 const double& defaultValue)33 bool ignoreMissingValue) 34 34 { 35 bool hasMissingValue = NumTraits<double>::isnan(defaultValue); 36 37 if (hasMissingValue) 35 if (ignoreMissingValue) 38 36 { 39 37 int nbLocalIndex = localIndex.size(); -
XIOS/trunk/src/transformation/Functions/min_reduction.hpp
r1018 r1076 26 26 const double* dataInput, 27 27 CArray<double,1>& dataOut, 28 std::vector<bool>& flagInitial, 29 const double& defaultValue);28 std::vector<bool>& flagInitial, 29 bool ignoreMissingValue); 30 30 31 31 virtual ~CMinReductionAlgorithm() {} -
XIOS/trunk/src/transformation/Functions/reduction.hpp
r1018 r1076 45 45 const double* dataInput, 46 46 CArray<double,1>& dataOut, 47 std::vector<bool>& flagInitial, 48 const double& defaultValue) = 0;47 std::vector<bool>& flagInitial, 48 bool ignoreMissingValue) = 0; 49 49 /*! 50 50 Update local data -
XIOS/trunk/src/transformation/Functions/sum_reduction.cpp
r1043 r1076 31 31 CArray<double,1>& dataOut, 32 32 std::vector<bool>& flagInitial, 33 const double& defaultValue)33 bool ignoreMissingValue) 34 34 { 35 bool hasMissingValue = NumTraits<double>::isnan(defaultValue); 36 37 if (hasMissingValue) 35 if (ignoreMissingValue) 38 36 { 39 37 int nbLocalIndex = localIndex.size(); -
XIOS/trunk/src/transformation/Functions/sum_reduction.hpp
r1018 r1076 27 27 CArray<double,1>& dataOut, 28 28 std::vector<bool>& flagInitial, 29 const double& defaultValue);29 bool ignoreMissingValue); 30 30 31 31 virtual ~CSumReductionAlgorithm() {}
Note: See TracChangeset
for help on using the changeset viewer.