Skip to content
Snippets Groups Projects
Verified Commit 0a7d60e7 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Stochastic solution under block decomposition: minor simplification

parent 58b2bc78
Branches
Tags
No related merge requests found
...@@ -34,7 +34,7 @@ function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin) ...@@ -34,7 +34,7 @@ function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin)
% none. % none.
% %
% Copyright (C) 2010-2020 Dynare Team % Copyright (C) 2010-2021 Dynare Team
% %
% This file is part of Dynare. % This file is part of Dynare.
% %
...@@ -63,13 +63,12 @@ end ...@@ -63,13 +63,12 @@ end
z = repmat(dr.ys,1,M_.maximum_lead + M_.maximum_lag + 1); 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); zx = repmat([oo_.exo_simul oo_.exo_det_simul],M_.maximum_lead + M_.maximum_lag + 1, 1);
if (isfield(M_,'block_structure'))
data = M_.block_structure.block; if ~isfield(M_,'block_structure')
Size = length(M_.block_structure.block); error('Option ''block'' has not been specified')
else
data = M_;
Size = 1;
end end
data = M_.block_structure.block;
if options_.bytecode if options_.bytecode
[~, data]= bytecode('dynamic','evaluate', z, zx, M_.params, dr.ys, 1, data); [~, data]= bytecode('dynamic','evaluate', z, zx, M_.params, dr.ys, 1, data);
else else
...@@ -93,7 +92,7 @@ n_sv = size(dr.state_var, 2); ...@@ -93,7 +92,7 @@ n_sv = size(dr.state_var, 2);
dr.ghx = zeros(M_.endo_nbr, length(dr.state_var)); dr.ghx = zeros(M_.endo_nbr, length(dr.state_var));
dr.exo_var = 1:M_.exo_nbr; dr.exo_var = 1:M_.exo_nbr;
dr.ghu = zeros(M_.endo_nbr, M_.exo_nbr); dr.ghu = zeros(M_.endo_nbr, M_.exo_nbr);
for i = 1:Size for i = 1:length(data)
ghx = []; ghx = [];
indexi_0 = 0; indexi_0 = 0;
if (verbose) if (verbose)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment