From c2c88600a1a0d60e26568ce7424573b028d3eed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Mon, 8 Oct 2012 14:42:09 +0200 Subject: [PATCH] More explicit error message when no estimated_params and no smoother Closes: #222 --- matlab/dynare_estimation_init.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matlab/dynare_estimation_init.m b/matlab/dynare_estimation_init.m index 7e5c3483d..5b79efe9f 100644 --- a/matlab/dynare_estimation_init.m +++ b/matlab/dynare_estimation_init.m @@ -152,6 +152,9 @@ if ~isempty(estim_params_) bayestopt_.lb = lb; bayestopt_.ub = ub; else% If estim_params_ is empty (e.g. when running the smoother on a calibrated model) + if ~options_.smoother + error('ESTIMATION: the ''estimated_params'' block is mandatory (unless you are running a smoother)') + end xparam1 = []; bayestopt_.lb = []; bayestopt_.ub = []; -- GitLab