From 3575afdf1dcb4fa0d1e876e89300b0c8dad56da0 Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@ec.europa.eu> Date: Mon, 31 Jan 2022 14:10:17 +0100 Subject: [PATCH] save info1 file only under debugging --- matlab/+occbin/DSGE_smoother.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/+occbin/DSGE_smoother.m b/matlab/+occbin/DSGE_smoother.m index 265f631cb9..2a5d919d53 100644 --- a/matlab/+occbin/DSGE_smoother.m +++ b/matlab/+occbin/DSGE_smoother.m @@ -185,7 +185,9 @@ while is_changed && maxiter>iter && ~is_periodic [alphahat,etahat,epsilonhat,ahat,SteadyState,trend_coeff,aK,T0,R0,P,PK,decomp,Trend,state_uncertainty,M_,oo_,bayestopt_] = DsgeSmoother(xparam1,gend,Y,data_index,missing_value,M_,oo_,options_,bayestopt_,estim_params_,occbin_options,TT,RR,CC);% T1=TT; sto_etahat(iter)={etahat}; regime_history0(iter,:) = regime_history; - save('info1','regime_history0'); + if occbin_smoother_debug + save('info1','regime_history0'); + end sto_CC = CC; sto_RR = RR; -- GitLab