Ignore:
Timestamp:
01/25/17 16:25:17 (7 years ago)
Author:
yushan
Message:

initialize the branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/transformation/generic_algorithm_transformation.cpp

    r1018 r1037  
    1111#include "context_client.hpp" 
    1212#include "client_client_dht_template.hpp" 
    13 #include "utils.hpp" 
    1413 
    1514namespace xios { 
     
    3231                                            const double& defaultValue) 
    3332{ 
    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; 
    3635  if (hasMissingValue) 
    3736  { 
    3837    for (int idx = 0; idx < nbLocalIndex; ++idx) 
    3938    { 
    40       if (NumTraits<double>::isnan(*(dataInput + idx))) 
     39      if (defaultValue == *(dataInput + idx)) 
    4140      { 
    4241        flagInitial[localIndex[idx].first] = false; 
Note: See TracChangeset for help on using the changeset viewer.