From f3bf8fb814c0259b1726e57cdffc951541559ffa Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 24 Mar 2022 12:55:31 +0100
Subject: [PATCH] MOM: add missing debug option

---
 matlab/+mom/run.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/+mom/run.m b/matlab/+mom/run.m
index c1ffafcce1..1dbc716320 100644
--- a/matlab/+mom/run.m
+++ b/matlab/+mom/run.m
@@ -365,7 +365,7 @@ analytic_jacobian_optimizers = [1, 3, 4, 13, 101]; %these are currently supporte
 options_mom_.initialize_estimated_parameters_with_the_prior_mode = 0; % needed by set_prior.m
 options_mom_.figures.textwidth = 0.8; %needed by plot_priors.m
 options_mom_.ramsey_policy = 0; % needed by evaluate_steady_state
-options_mom_.debug = false; %needed by resol.m
+options_mom_ = set_default_option(options_mom_,'debug',false); %neeeded by e.g. check_plot
 options_mom_.risky_steadystate = false; %needed by resol
 options_mom_.threads = options_.threads; %needed by resol
 options_mom_.jacobian_flag = true;
-- 
GitLab