From 408cce93cb17d11675d7640c2ea7fdc801be64d4 Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Sun, 22 Apr 2012 10:11:29 +0200
Subject: [PATCH] fixing bug related to computation of steady state introduced
 in commit f8ecc4d6baab8fd8430970a67ba2b906b9f8a919

---
 matlab/make_y_.m | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/matlab/make_y_.m b/matlab/make_y_.m
index 3dd2fa2c10..914f37d346 100644
--- a/matlab/make_y_.m
+++ b/matlab/make_y_.m
@@ -31,9 +31,11 @@ function make_y_
 
 global M_ options_ oo_ ys0_ 
 
-[oo_.steady_state,M_.params,check] = ...
-    evaluate_steady_state_file(oo_.steady_state,oo_.exo_steady_state,M_, ...
-                               options_);
+if options_.steadystate_flag
+    [oo_.steady_state,M_.params,check] = ...
+        evaluate_steady_state_file(oo_.steady_state,oo_.exo_steady_state,M_, ...
+                                   options_);
+end
 
 if isempty(oo_.steady_state)
     oo_.steady_state = zeros(M_.endo_nbr,1);
-- 
GitLab