v4.1: Dynare displays the residuals of the static equations of the model when the values of the endogenous variables supplied by

*_steadystate.m are wrong.



git-svn-id: https://www.dynare.org/svn/dynare/trunk@2336 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
stepan 2008-12-19 21:34:44 +00:00
parent 8d21e0f882
commit 9fe2556b01
1 changed files with 4 additions and 7 deletions

View File

@ -1,8 +1,6 @@
function steady_()
% function steady_()
% computes the steady state
% Computes the steady state
%
% INPUTS
% none
@ -29,10 +27,8 @@ function steady_()
%
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global M_ oo_ it_ options_
if options_.steadystate_flag
[oo_.steady_state,check] = feval([M_.fname '_steadystate'],...
oo_.steady_state,...
@ -48,8 +44,9 @@ function steady_()
[oo_.exo_steady_state; ...
oo_.exo_det_steady_state], M_.params))) > options_.dynatol ;
if check1
error(['The seadystate values returned by ' M_.fname ...
'_steadystate.m don''t solve the static model!' ])
resid(1);
error(['The seadystate values returned by ' M_.fname ...
'_steadystate.m don''t solve the static model!' ])
end
end
end