From 33baab148bf4d5553d9e21dc6fd001f7834f3ee0 Mon Sep 17 00:00:00 2001
From: michel <michel@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Thu, 20 Dec 2007 19:42:19 +0000
Subject: [PATCH] v4 check.m: corrected bug when no exogenous variable and save
 results in oo_.dr

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1509 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/check.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/matlab/check.m b/matlab/check.m
index 03ede0593d..1ca7e34057 100644
--- a/matlab/check.m
+++ b/matlab/check.m
@@ -7,7 +7,7 @@ global it_
   
   temp_options = options_;
   tempex = oo_.exo_simul;
-  if ~options_.initval_file
+  if ~options_.initval_file & M_.exo_nbr > 1
     oo_.exo_simul = ones(M_.maximum_lead+M_.maximum_lag+1,1)*oo_.exo_steady_state';
   end
   
@@ -22,6 +22,8 @@ global it_
 
   [dr, info] = resol(oo_.steady_state,1);
   
+  oo_.dr = dr;
+  
   if info(1) ~= 0 & info(1) ~= 3 & info(1) ~= 4
     print_info(info);
   end  
-- 
GitLab