- Timestamp:
- 11/15/17 12:14:34 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/transformation/Functions/max_reduction.cpp
r1205 r1328 31 31 CArray<double,1>& dataOut, 32 32 std::vector<bool>& flagInitial, 33 bool ignoreMissingValue )33 bool ignoreMissingValue, bool firstPass) 34 34 { 35 35 if (ignoreMissingValue) 36 36 { 37 37 int nbLocalIndex = localIndex.size(); 38 int currentlocalIndex = 0; 38 int currentlocalIndex = 0; 39 if (firstPass) dataOut=std::numeric_limits<double>::quiet_NaN(); 39 40 for (int idx = 0; idx < nbLocalIndex; ++idx) 40 41 { … … 51 52 dataOut(currentlocalIndex) = std::max(*(dataInput + idx), dataOut(currentlocalIndex)); 52 53 } 53 }54 else55 {56 if (flagInitial[currentlocalIndex])57 dataOut(currentlocalIndex) = std::numeric_limits<double>::quiet_NaN();58 54 } 59 55 }
Note: See TracChangeset
for help on using the changeset viewer.