From ce4aa9a8e1f92b71781e21dcdce1b9d70b08dd09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Fri, 13 Dec 2019 18:20:10 +0100 Subject: [PATCH] Preprocessor update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — deprecation warning for “simul” (#1683) — Ramsey: use information from transformed model for filling M_.nonzero_hessian_eqs. (Closes: #1681) Also, M_.hessian_eq_zero is not generated if order = 1 — New field M_.endo_trends (#1648) --- matlab/disp_dr.m | 4 ++-- matlab/irf.m | 2 +- matlab/stoch_simul.m | 2 +- matlab/stochastic_solvers.m | 4 ++-- matlab/th_autocovariances.m | 4 ++-- preprocessor | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/matlab/disp_dr.m b/matlab/disp_dr.m index 98e8865cbb..d116992220 100644 --- a/matlab/disp_dr.m +++ b/matlab/disp_dr.m @@ -29,7 +29,7 @@ function disp_dr(dr,order,var_list) global M_ options_ -if M_.hessian_eq_zero && order~=1 +if order~=1 && M_.hessian_eq_zero order = 1; warning('disp_dr: using order = 1 because Hessian is equal to zero'); end @@ -299,4 +299,4 @@ if abs(x) >= options_.dr_display_tol else str = [str sprintf(value_format_zero, 0)]; end -end \ No newline at end of file +end diff --git a/matlab/irf.m b/matlab/irf.m index d1c7014e87..33f9e9fb1c 100644 --- a/matlab/irf.m +++ b/matlab/irf.m @@ -43,7 +43,7 @@ end y = 0; local_order = iorder; -if M_.hessian_eq_zero && local_order~=1 +if local_order~=1 && M_.hessian_eq_zero local_order = 1; end diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m index 43e5c068ca..9d6d798b52 100644 --- a/matlab/stoch_simul.m +++ b/matlab/stoch_simul.m @@ -38,7 +38,7 @@ if options_.order == 1 options_.replic = 1; end -if M_.hessian_eq_zero && options_.order~=1 +if options_.order~=1 && M_.hessian_eq_zero options_.order = 1; warning('stoch_simul: using order = 1 because Hessian is equal to zero'); end diff --git a/matlab/stochastic_solvers.m b/matlab/stochastic_solvers.m index 6dfcb8120f..5aa9920b41 100644 --- a/matlab/stochastic_solvers.m +++ b/matlab/stochastic_solvers.m @@ -24,7 +24,7 @@ function [dr, info] = stochastic_solvers(dr, task, M_, options_, oo_) % info=6 -> The jacobian matrix evaluated at the steady state is complex. % info=9 -> k_order_pert was unable to compute the solution -% Copyright (C) 1996-2018 Dynare Team +% Copyright (C) 1996-2019 Dynare Team % % This file is part of Dynare. % @@ -48,7 +48,7 @@ if options_.linear end local_order = options_.order; -if M_.hessian_eq_zero && local_order~=1 +if local_order~=1 && M_.hessian_eq_zero local_order = 1; warning('stochastic_solvers: using order = 1 because Hessian is equal to zero'); end diff --git a/matlab/th_autocovariances.m b/matlab/th_autocovariances.m index 4b82390437..a095d64300 100644 --- a/matlab/th_autocovariances.m +++ b/matlab/th_autocovariances.m @@ -42,7 +42,7 @@ function [Gamma_y,stationary_vars] = th_autocovariances(dr,ivar,M_,options_,node % E(x_t) = (I - {g_x}\right)^{- 1} 0.5\left( g_{\sigma\sigma} \sigma^2 + g_{xx} Var(\hat x_t) + g_{uu} Var(u_t) \right) % \] % -% Copyright (C) 2001-2017 Dynare Team +% Copyright (C) 2001-2019 Dynare Team % % This file is part of Dynare. % @@ -68,7 +68,7 @@ if options_.order >= 3 end local_order = options_.order; -if M_.hessian_eq_zero && local_order~=1 +if local_order~=1 && M_.hessian_eq_zero local_order = 1; end diff --git a/preprocessor b/preprocessor index c1b8cdf811..141cff0761 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit c1b8cdf811b94ed725111a8b013ec5fd24849aac +Subproject commit 141cff07613dd5440a746103eb195ad05424ad01 -- GitLab