Commit 5e29a608 authored by Johannes Pfeifer 's avatar Johannes Pfeifer
Browse files

dr_block.m: make sure zx has correct dimensions if no initval is present

Also do earlier check for loglinear option
parent 60bf0fd3
......@@ -61,11 +61,18 @@ end
%verbose = options_.verbosity;
if options_.order > 1
error('2nd and 3rd order approximation not implemented with block option')
if options_.loglinear
error('The loglinear option is not yet supported in first order approximation for a block decomposed model');
z = repmat(dr.ys,1,M_.maximum_lead + M_.maximum_lag + 1);
zx = repmat([oo_.exo_simul oo_.exo_det_simul],M_.maximum_lead + M_.maximum_lag + 1, 1);
if isempty(zx)
zx = [repmat(oo_.exo_steady_state',M_.maximum_lead + M_.maximum_lag + 1,1) repmat(oo_.exo_det_steady_state',M_.maximum_lead + M_.maximum_lag + 1,1)];
if ~isfield(M_,'block_structure')
error('Option ''block'' has not been specified')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment