From 7875105bd6d7d2d8d4b6d8b5e81b9642237681b4 Mon Sep 17 00:00:00 2001 From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Wed, 2 Apr 2008 15:08:44 +0000 Subject: [PATCH] v4 preprocessor: removed irrelevant error messages in ExprNode evaluation git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1775 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ExprNode.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ExprNode.cc b/ExprNode.cc index 4012c9a6..06a8a691 100644 --- a/ExprNode.cc +++ b/ExprNode.cc @@ -413,12 +413,8 @@ VariableNode::eval(const eval_context_type &eval_context) const throw (EvalExcep throw EvalException();*/ eval_context_type::const_iterator it = eval_context.find(make_pair(symb_id, type)); if (it == eval_context.end()) - { - if (eval_context.size() > 0) - cerr << "Error: the variable or parameter (" << datatree.symbol_table.getNameByID(type, symb_id) << ") has not been initialized (in derivatives evaluation)" << endl; + throw EvalException(); - throw EvalException(); - } return it->second; } @@ -1668,7 +1664,6 @@ UnknownFunctionNode::collectEndogenous(NodeID &Id) double UnknownFunctionNode::eval(const eval_context_type &eval_context) const throw (EvalException) { - cerr << "UnknownFunctionNode::eval: operation impossible!" << endl; throw EvalException(); } -- GitLab