From ac511ca75644b56d080ede302c1fa55adc3cf07f Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@ec.europa.eu>
Date: Mon, 1 Jul 2019 16:11:41 +0200
Subject: [PATCH] bug fix for computing shock decomp for auxiliary variable
 with groups

---
 matlab/plot_shock_decomposition.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/matlab/plot_shock_decomposition.m b/matlab/plot_shock_decomposition.m
index 7d3cb342ac..e717e16a67 100644
--- a/matlab/plot_shock_decomposition.m
+++ b/matlab/plot_shock_decomposition.m
@@ -437,6 +437,7 @@ switch type
             if isstruct(q2a.aux) && ischar(q2a.aux.y)
                 opts=options_;
                 opts.plot_shock_decomp.type='qoq';
+                opts.plot_shock_decomp.use_shock_groups=[];
                 [y_aux, steady_state_aux] = plot_shock_decomposition(M_,oo_,opts,q2a.aux.y);
                 q2a.aux.y=y_aux;
                 q2a.aux.yss=steady_state_aux;
-- 
GitLab