- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/transformation/generic_algorithm_transformation.cpp
r1018 r1037 11 11 #include "context_client.hpp" 12 12 #include "client_client_dht_template.hpp" 13 #include "utils.hpp"14 13 15 14 namespace xios { … … 32 31 const double& defaultValue) 33 32 { 34 int nbLocalIndex = localIndex.size(); 35 bool hasMissingValue = NumTraits<double>::isnan(defaultValue);33 int nbLocalIndex = localIndex.size(); 34 bool hasMissingValue = (0.0 != defaultValue) ? true : false; 36 35 if (hasMissingValue) 37 36 { 38 37 for (int idx = 0; idx < nbLocalIndex; ++idx) 39 38 { 40 if ( NumTraits<double>::isnan(*(dataInput + idx)))39 if (defaultValue == *(dataInput + idx)) 41 40 { 42 41 flagInitial[localIndex[idx].first] = false;
Note: See TracChangeset
for help on using the changeset viewer.