- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/parse_expr/scalar_expr_node.cpp
r1020 r1037 23 23 double CScalarVarExprNode::reduce() const 24 24 { 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."); 25 if (!CVariable::has(varId)) 26 ERROR("double CScalarVarExprNode::reduce() const", << "The variable " << varId << " does not exist."); 34 27 35 return CVariable::get(varId)->getData<double>(); 36 } 28 return CVariable::get(varId)->getData<double>(); 37 29 } 38 30
Note: See TracChangeset
for help on using the changeset viewer.