- Timestamp:
- 06/06/17 10:53:33 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/Functions/max_reduction.cpp
r1076 r1154 36 36 { 37 37 int nbLocalIndex = localIndex.size(); 38 int currentlocalIndex = 0; 39 dataOut=std::numeric_limits<double>::quiet_NaN(); 38 int currentlocalIndex = 0; 40 39 for (int idx = 0; idx < nbLocalIndex; ++idx) 41 40 { … … 52 51 dataOut(currentlocalIndex) = std::max(*(dataInput + idx), dataOut(currentlocalIndex)); 53 52 } 53 } 54 else 55 { 56 if (flagInitial[currentlocalIndex]) 57 dataOut(currentlocalIndex) = std::numeric_limits<double>::quiet_NaN(); 54 58 } 55 59 }
Note: See TracChangeset
for help on using the changeset viewer.