From ff83c4aea77a269dcceb4788cba03e20a23a2ddf Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Thu, 14 Sep 2023 16:10:25 +0200
Subject: [PATCH] evaluate_steady_state_file.m: Octave bug 52568 was fixed in
 Octave 6

---
 matlab/evaluate_steady_state_file.m | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/matlab/evaluate_steady_state_file.m b/matlab/evaluate_steady_state_file.m
index 4b6bfdc705..ee312d8815 100644
--- a/matlab/evaluate_steady_state_file.m
+++ b/matlab/evaluate_steady_state_file.m
@@ -66,13 +66,7 @@ else
     updated_params_flag = 0;
 end
 
-if M.set_auxiliary_variables
-    % Define function handle for the function setting the auxiliary
-    % variables only if the model has auxiliary variables. Otherwise
-    % Octave may crash (see https://savannah.gnu.org/bugs/?52568) because
-    % the function does not exist in the path.
-    h_set_auxiliary_variables = str2func([M.fname '.set_auxiliary_variables']);
-end
+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;
-- 
GitLab