From c45db6540e75b88d9e70e499b0ca421514040519 Mon Sep 17 00:00:00 2001 From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Fri, 5 Sep 2008 15:01:05 +0000 Subject: [PATCH] v4.0: removed spurious messages related to estimation command with no variable list git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2042 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/check_list_of_variables.m | 15 ++++----------- matlab/dynare_estimation.m | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/matlab/check_list_of_variables.m b/matlab/check_list_of_variables.m index a2ca4e98d0..7ed79ccd96 100644 --- a/matlab/check_list_of_variables.m +++ b/matlab/check_list_of_variables.m @@ -34,11 +34,9 @@ function varlist = check_list_of_variables(options_, M_, varlist) if isempty(varlist) disp(' ') disp(['You did not declared endogenous variables after the estimation command.']) - info = 0; cas = []; if options_.bayesian_irf cas = 'Posterior IRFs'; - info=1; end if options_.moments_varendo if isempty(cas) @@ -46,7 +44,6 @@ function varlist = check_list_of_variables(options_, M_, varlist) else cas = [ cas , ', posterior moments']; end - info=1; end if options_.smoother if isempty(cas) @@ -54,7 +51,6 @@ function varlist = check_list_of_variables(options_, M_, varlist) else cas = [ cas , ', posterior smoothed variables']; end - info=1; end if options_.smoother if isempty(cas) @@ -62,7 +58,6 @@ function varlist = check_list_of_variables(options_, M_, varlist) else cas = [ cas , ', posterior smoothed variables']; end - info=1; end if ~isempty(options_.filter_step_ahead) if isempty(cas) @@ -70,7 +65,6 @@ function varlist = check_list_of_variables(options_, M_, varlist) else cas = [ cas , ', posterior k-step ahead filtered variables']; end - info=1; end if options_.forecast if isempty(cas) @@ -78,12 +72,11 @@ function varlist = check_list_of_variables(options_, M_, varlist) else cas = [ cas , ' and posterior forecats']; end - info=1; end - string = [ cas , ' will be computed for the ' num2str(M_.endo_nbr) ' endogenous variables']; - string = [ string ' of your model, this can be very long....']; - format_text( string, 10) - if info + if ~isempty(cas) + string = [ cas , ' will be computed for the ' num2str(M_.endo_nbr) ' endogenous variables']; + string = [ string ' of your model, this can be very long....']; + format_text(string, 10) choice = []; while isempty(choice) disp(' ') diff --git a/matlab/dynare_estimation.m b/matlab/dynare_estimation.m index 025461b76e..80319c6948 100644 --- a/matlab/dynare_estimation.m +++ b/matlab/dynare_estimation.m @@ -30,7 +30,7 @@ function dynare_estimation(var_list_) global M_ options_ oo_ estim_params_ bayestopt_ -var_list_ = check_list_of_variables(options_, M_, var_list_) +var_list_ = check_list_of_variables(options_, M_, var_list_); %if isempty(var_list_) % return %else -- GitLab