Commit d55d1d7b authored by Stéphane Adjemian's avatar Stéphane Adjemian Committed by Stéphane Adjemian (Scylla)
Browse files

Cosmetic change related to the previous commit (12e0509510f7d71a8c2556b991eb84ebebe47e18).

parent e8fe8c77
......@@ -125,8 +125,11 @@ else
end
% test if M_.params_has changed.
updated_params_flag = max(abs(M_.params-params0))>1e-12;
if options_.steadystate_flag
updated_params_flag = max(abs(M_.params-params0))>1e-12;
else
updated_params_flag = 0;
end
% testing for problem.
dr.ys = steady_state;
......@@ -161,14 +164,14 @@ if ~isempty(find(isnan(steady_state)))
return
end
if updated_params_flag && ~isreal(steady_state)
if options_.steadystate_flag && updated_params_flag && ~isreal(M_.params)
info(1) = 23;
info(2) = sum(imag(M_.params).^2);
dr.ys = steady_state;
return
end
if updated_params_flag && ~isempty(find(isnan(M_.params)))
if options_.steadystate_flag && updated_params_flag && ~isempty(find(isnan(M_.params)))
info(1) = 24;
info(2) = NaN;
dr.ys = steady_state;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment