From e184c1f36855940e96a15777f0ef341deafb42ab Mon Sep 17 00:00:00 2001 From: Ferhat Date: Fri, 17 Feb 2012 10:24:31 +0100 Subject: [PATCH] ghx matrix has to be stored as soon as the block contains lagged or mixed variables --- matlab/dr_block.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/dr_block.m b/matlab/dr_block.m index 197edaaa8..7f7df97cc 100644 --- a/matlab/dr_block.m +++ b/matlab/dr_block.m @@ -650,7 +650,7 @@ for i = 1:Size; end end; if task ~=1 - if (maximum_lag > 0 && n_pred > 0) + if (maximum_lag > 0 && (n_pred > 0 || n_both > 0)) sorted_col_dr_ghx = M_.block_structure.block(i).sorted_col_dr_ghx; dr.ghx(endo, sorted_col_dr_ghx) = dr.ghx(endo, sorted_col_dr_ghx) + ghx; data(i).ghx = ghx;