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