Changeset 1020
- Timestamp:
- 01/10/17 13:53:06 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/parse_expr/scalar_expr_node.cpp
r642 r1020 23 23 double CScalarVarExprNode::reduce() const 24 24 { 25 if (!CVariable::has(varId)) 26 ERROR("double CScalarVarExprNode::reduce() const", << "The variable " << varId << " does not exist."); 25 // $missing_value will be replaced with NaN 26 if (varId == "missing_value") 27 { 28 return std::numeric_limits<double>::quiet_NaN(); 29 } 30 else 31 { 32 if (!CVariable::has(varId)) 33 ERROR("double CScalarVarExprNode::reduce() const", << "The variable " << varId << " does not exist."); 27 34 28 return CVariable::get(varId)->getData<double>(); 35 return CVariable::get(varId)->getData<double>(); 36 } 29 37 } 30 38
Note: See TracChangeset
for help on using the changeset viewer.