From 57861e22d985cfa184ea987d3a524c25275ac31b Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@mjui.fr>
Date: Sun, 20 May 2012 21:35:34 +0200
Subject: [PATCH] resid: print residuals even if a *_steadystate.m file reports
 an error

---
 matlab/resid.m | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/matlab/resid.m b/matlab/resid.m
index 23a59e13e1..27939eed15 100644
--- a/matlab/resid.m
+++ b/matlab/resid.m
@@ -52,10 +52,6 @@ if options_.steadystate_flag
         evaluate_steady_state(oo_.steady_state,M_,options_,oo_,0);
 end
 
-if info(1)
-    print_info(info,options_.noprint)
-end
-
 % Keep of a copy of M_.Sigma_e
 Sigma_e = M_.Sigma_e;
 
@@ -119,4 +115,9 @@ if nargout == 0
     end
 end
 
+if info(1)
+    print_info(info,options_.noprint)
+end
+
+
 oo_.steady_state = steady_state_old;
-- 
GitLab