Commit 2dbeddd1 authored by Ferhat Mihoubi's avatar Ferhat Mihoubi
Browse files

- Manages the temporary terms when the model is evaluated block by block

parent 2707965d
function [x,info] = dynare_solve_block_or_bytecode(y, exo, params)
function [x,info] = dynare_solve_block_or_bytecode(y, exo, params, temporary_terms)
% Copyright (C) 2010 Dynare Team
%
% This file is part of Dynare.
......@@ -48,12 +48,13 @@ elseif options_.bytecode
mexErrCheck('bytecode', check);
info = check;
elseif options_.block
temporary_terms = [];
for b = 1:size(M_.blocksMFS,1)
n = size(M_.blocksMFS{b}, 1);
if n ~= 0
[y, check] = dynare_solve('block_bytecode_mfs_steadystate', ...
x(M_.blocksMFS{b}), ...
options_.jacobian_flag, b, x);
options_.jacobian_flag, b, x, temporary_terms);
if check ~= 0
error(['STEADY: convergence problems in block ' int2str(b)])
end
......
Supports Markdown
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