From 1b63b613deaccfef37502b509b3e1addc5026430 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 3 Aug 2021 07:36:04 +0200 Subject: [PATCH] FEM: ccx tools task panel, do not run solver with no or wrong ccx binary --- src/Mod/Fem/femtaskpanels/task_solver_ccxtools.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Mod/Fem/femtaskpanels/task_solver_ccxtools.py b/src/Mod/Fem/femtaskpanels/task_solver_ccxtools.py index 78cf978c9d..a33b5c7cf6 100644 --- a/src/Mod/Fem/femtaskpanels/task_solver_ccxtools.py +++ b/src/Mod/Fem/femtaskpanels/task_solver_ccxtools.py @@ -356,6 +356,13 @@ class _TaskPanel: FemGui.open(self.fea.inp_file_name) def runCalculix(self): + if self.fea.ccx_binary_present is False: + self.femConsoleMessage( + "CalculiX can not be started. No or wrong CalculiX binary: {}" + .format(self.fea.ccx_binary) + ) + # TODO deactivate the run button + return # print("runCalculix") self.Start = time.time()