From c6fd17bc302dae371bfaf6490bead6cee089723b Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel.juillard@mjui.fr> Date: Sun, 20 May 2012 21:36:29 +0200 Subject: [PATCH] print residuals when steady fails. Printing steady state or residuals is controlled by options_.noprint --- matlab/steady.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matlab/steady.m b/matlab/steady.m index 7bd3c800d1..4b1d14f045 100644 --- a/matlab/steady.m +++ b/matlab/steady.m @@ -82,8 +82,13 @@ end if info(1) == 0 oo_.steady_state = steady_state; - disp_steady_state(M_,oo_); + if options_.noprint == 0 + disp_steady_state(M_,oo_); + end else + if options_.noprint == 0 + resid; + end print_info(info,options_.noprint); end -- GitLab