Commit 712812a6 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

evaluate_steady_state_file.m: Condition call to str2func on function being present

Workaround for Octave bug

(cherry picked from commit 99e4cb6e)
parent 46179636
......@@ -70,7 +70,9 @@ else
updated_params_flag = 0;
h_set_auxiliary_variables = str2func([M.fname '_set_auxiliary_variables']);
if M.set_auxiliary_variables %otherwise Octave may crash, see
h_set_auxiliary_variables = str2func([M.fname '_set_auxiliary_variables']);
if isnan(updated_params_flag) || (updated_params_flag && any(isnan(params(~isnan(params))-params1(~isnan(params))))) %checks if new NaNs were added
info(1) = 24;
info(2) = NaN;
Supports Markdown
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