- Timestamp:
- 06/06/17 10:53:33 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/Functions/average_reduction.cpp
r1076 r1154 39 39 int nbLocalIndex = localIndex.size(); 40 40 int currentlocalIndex = 0; 41 double currentWeight = 0.0; 42 43 dataOut=std::numeric_limits<double>::quiet_NaN(); 41 double currentWeight = 0.0; 44 42 45 43 for (int idx = 0; idx < nbLocalIndex; ++idx) … … 59 57 weights_(currentlocalIndex) += 1.0; 60 58 } 59 } 60 else 61 { 62 if (flagInitial[currentlocalIndex]) 63 dataOut(currentlocalIndex) = std::numeric_limits<double>::quiet_NaN(); 61 64 } 62 65 }
Note: See TracChangeset
for help on using the changeset viewer.