Commit 0096c757 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi

In a block decomposed model the variables are not stored in the usual order

parent ca103726
......@@ -86,7 +86,11 @@ switch nargin
nstatic = DynareResults.dr.nstatic;
npred = DynareResults.dr.npred;
iv = (1:endo_nbr)';
ic = [ nstatic+(1:npred) endo_nbr+(1:size(DynareResults.dr.ghx,2)-npred) ]';
if DynareOptions.block == 0
ic = [ nstatic+(1:npred) endo_nbr+(1:size(DynareResults.dr.ghx,2)-npred) ]';
else
ic = DynareResults.dr.restrict_columns;
end;
case 4
iv = DynareResults.dr.restrict_var_list;
ic = DynareResults.dr.restrict_columns;
......
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