From 694496ee14be32860c7aff86ac9bce49c49ce732 Mon Sep 17 00:00:00 2001 From: sebastien 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 --- preprocessor/ExprNode.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 4012c9a6b..06a8a6912 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/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(); }