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