Changeset 1156 for XIOS/dev/branch_yushan_merged/src/transformation/generic_algorithm_transformation.cpp
- Timestamp:
- 06/06/17 15:52:13 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/transformation/generic_algorithm_transformation.cpp
r1104 r1156 45 45 { 46 46 dataOut(localIndex[idx].first) += *(dataInput + idx) * localIndex[idx].second; 47 } 48 } 49 50 // for (int idx = 0; idx < nbLocalIndex; ++idx) 51 // { 52 // if (!flagInitial[localIndex[idx].first]) 53 // dataOut(localIndex[idx].first) = defaultValue; 54 // } 47 flagInitial[localIndex[idx].first] = true; // Reset flag to indicate not all data source are nan 48 } 49 } 50 51 // If all data source are nan then data destination must be nan 52 for (int idx = 0; idx < nbLocalIndex; ++idx) 53 { 54 if (!flagInitial[localIndex[idx].first]) 55 dataOut(localIndex[idx].first) = defaultValue; 56 } 55 57 } 56 58 else
Note: See TracChangeset
for help on using the changeset viewer.