From 5835e50c80accfb98e76154cffae23fd6406edca Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@ec.europa.eu>
Date: Thu, 6 Jan 2022 14:57:57 +0100
Subject: [PATCH] reset nested waitbars when computing posterior smoother with
 occbin

(cherry picked from commit 8130125fa78975d9b6392b4be736def9d8b41bd9)
---
 matlab/prior_posterior_statistics_core.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/matlab/prior_posterior_statistics_core.m b/matlab/prior_posterior_statistics_core.m
index 38862e06c7..c6264ed4b0 100644
--- a/matlab/prior_posterior_statistics_core.m
+++ b/matlab/prior_posterior_statistics_core.m
@@ -224,6 +224,8 @@ for b=fpar:B
             fprintf('prior_posterior_statistics: This should not happen. Please contact the developers.\n',message)
         end
         if options_.occbin.smoother.status
+            opts_local.occbin.simul.waitbar=0;
+            opts_local.occbin.smoother.waitbar = 0;
             [alphahat,etahat,epsilonhat,alphatilde,SteadyState,trend_coeff,aK,~,~,P,~,~,trend_addition,state_uncertainty,M_,oo_,bayestopt_] = ...
                 occbin.DSGE_smoother(deep,gend,Y,data_index,missing_value,M_,oo_,opts_local,bayestopt_,estim_params_);
         else
-- 
GitLab