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

Preprocessor: forbid check and stoch_simul in block-decomposed mode with mfs > 0

Closes: #1726
parent 62aa799d
Branches
Tags
No related merge requests found
Pipeline #5248 failed
function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin) function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin)
% function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin) % function [dr,info,M_,options_,oo_] = dr_block(dr,task,M_,options_,oo_,varargin)
% computes the reduced form solution of a rational expectations model % computes the reduced form solution of a rational expectations block-decomposed model
% (first order approximation of the stochastic model around the deterministic steady state). % (first order approximation of the stochastic model around the deterministic steady state).
% %
% NB: This code does not work with option mfs > 0. The preprocessor has a check to avoid this
% configuration. See also #1726.
%
% INPUTS % INPUTS
% dr [matlab structure] Decision rules for stochastic simulations. % dr [matlab structure] Decision rules for stochastic simulations.
% task [integer] if task = 0 then dr_block computes decision rules. % task [integer] if task = 0 then dr_block computes decision rules.
......
Subproject commit 7765efe95bff0d724ccbc97c0b3f543577395017 Subproject commit 3c4d647cc33a14d3648ad0989557cf687a650487
...@@ -716,13 +716,12 @@ tauc2=tauc; ...@@ -716,13 +716,12 @@ tauc2=tauc;
end; end;
%======================================================== %==============================
% compute initial steady state and check eigenvalues % compute initial steady state
%======================================================== %==============================
resid; resid;
steady(solve_algo=3); steady(solve_algo=3);
check;
@#if deterministic @#if deterministic
...@@ -930,13 +929,12 @@ tauw2=tauw; ...@@ -930,13 +929,12 @@ tauw2=tauw;
tauc2=tauc; tauc2=tauc;
end; end;
%======================================================== %============================
% compute final steady state and check eigenvalues % compute final steady state
%======================================================== %============================
resid; resid;
steady(solve_algo=3); steady(solve_algo=3);
check;
shocks; shocks;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment