Merge pull request #464 from JohannesPfeifer/steady_display

Bug fixes for display of problems with steady state
time-shift
Sébastien Villemot 2013-08-26 00:33:22 -07:00
commit 3c8daf1cd7
2 changed files with 9 additions and 2 deletions

View File

@ -65,8 +65,15 @@ end
[dr.ys,params,check1]=evaluate_steady_state(oo.steady_state,M,options,oo,1);
% testing for problem
if check1
if check1(1)
disp('model diagnostic can''t obtain the steady state')
if any(isnan(dr.ys))
disp(['model diagnostic obtains a steady state with NaNs'])
end
if any(isinf(dr.ys))
disp(['model diagnostic obtains a steady state with Inf'])
end
return;
end
if ~isreal(dr.ys)

View File

@ -79,9 +79,9 @@ if info(1)
end
[steady_state,M_.params,info] = steady_(M_,options_,oo_);
oo_.steady_state = steady_state;
if info(1) == 0
oo_.steady_state = steady_state;
if options_.noprint == 0
disp_steady_state(M_,oo_);
end