- 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/average_reduction.cpp
r1157 r1160 39 39 int nbLocalIndex = localIndex.size(); 40 40 int currentlocalIndex = 0; 41 double currentWeight = 0.0; 41 double currentWeight = 0.0; 42 42 43 dataOut=std::numeric_limits<double>::quiet_NaN(); 43 44 44 45 for (int idx = 0; idx < nbLocalIndex; ++idx) … … 58 59 weights_(currentlocalIndex) += 1.0; 59 60 } 60 }61 else62 {63 if (flagInitial[currentlocalIndex])64 dataOut(currentlocalIndex) = std::numeric_limits<double>::quiet_NaN();65 61 } 66 62 }
Note: See TracChangeset
for help on using the changeset viewer.