From a85cc7b451f0439ecab1f3ee5e0efcc7b5b48d74 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 20 Apr 2017 18:41:28 +0200 Subject: [PATCH] preprocessor: change trend test to warning. #1389 --- DynamicModel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DynamicModel.cc b/DynamicModel.cc index 212cec56..32e3f384 100644 --- a/DynamicModel.cc +++ b/DynamicModel.cc @@ -4104,11 +4104,11 @@ DynamicModel::testTrendDerivativesEqualToZero(const eval_context_t &eval_context double nearZero = testeq->getDerivative(endogit->second)->eval(eval_context); // eval d F / d Trend d Endog if (fabs(nearZero) > ZERO_BAND) { - cerr << "ERROR: trends not compatible with balanced growth path; the second-order cross partial of equation " << eq + 1 << " (line " + cerr << "WARNING: trends not compatible with balanced growth path; the second-order cross partial of equation " << eq + 1 << " (line " << equations_lineno[eq] << ") w.r.t. trend variable " << symbol_table.getName(it->first.first) << " and endogenous variable " << symbol_table.getName(endogit->first.first) << " is not null. " << endl; - exit(EXIT_FAILURE); + // Changed to warning. See discussion in #1389 } } }