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

Closes: #1726
time-shift
Sébastien Villemot 2021-05-04 17:18:20 +02:00
parent 62aa799d3e
commit 04ba15e5cc
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
3 changed files with 11 additions and 10 deletions

View File

@ -1,8 +1,11 @@
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).
%
% NB: This code does not work with option mfs > 0. The preprocessor has a check to avoid this
% configuration. See also #1726.
%
% INPUTS
% dr [matlab structure] Decision rules for stochastic simulations.
% task [integer] if task = 0 then dr_block computes decision rules.

@ -1 +1 @@
Subproject commit 7765efe95bff0d724ccbc97c0b3f543577395017
Subproject commit 3c4d647cc33a14d3648ad0989557cf687a650487

View File

@ -716,13 +716,12 @@ tauc2=tauc;
end;
%========================================================
% compute initial steady state and check eigenvalues
%========================================================
%==============================
% compute initial steady state
%==============================
resid;
steady(solve_algo=3);
check;
@#if deterministic
@ -930,13 +929,12 @@ tauw2=tauw;
tauc2=tauc;
end;
%========================================================
% compute final steady state and check eigenvalues
%========================================================
%============================
% compute final steady state
%============================
resid;
steady(solve_algo=3);
check;
shocks;