From 8964584fd4b09089e3ac7cf87c041c5cdb57bd7e Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 9 Jan 2018 07:29:22 +0100 Subject: [PATCH] FEM: new solver framework, add log if input file writing was finished for Z88 and CCX --- src/Mod/Fem/femsolver/calculix/tasks.py | 4 ++++ src/Mod/Fem/femsolver/z88/tasks.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Mod/Fem/femsolver/calculix/tasks.py b/src/Mod/Fem/femsolver/calculix/tasks.py index 0c9627539e..ec814cac53 100644 --- a/src/Mod/Fem/femsolver/calculix/tasks.py +++ b/src/Mod/Fem/femsolver/calculix/tasks.py @@ -69,6 +69,10 @@ class Prepare(run.Prepare): c.beam_sections, c.shell_thicknesses, c.fluid_sections, self.solver.AnalysisType, self.directory) path = w.write_calculix_input_file() + if path is not None: + self.pushStatus("Write completed!") + else: + self.pushStatus("Writing CalculiX input file failed!") _inputFileName = os.path.splitext(os.path.basename(path))[0] diff --git a/src/Mod/Fem/femsolver/z88/tasks.py b/src/Mod/Fem/femsolver/z88/tasks.py index b20ffe9ca3..5bf8ca3ca8 100644 --- a/src/Mod/Fem/femsolver/z88/tasks.py +++ b/src/Mod/Fem/femsolver/z88/tasks.py @@ -67,6 +67,10 @@ class Prepare(run.Prepare): c.beam_sections, c.shell_thicknesses, c.fluid_sections, self.solver.AnalysisType, self.directory) path = w.write_z88_input() + if path is not None: + self.pushStatus("Write completed!") + else: + self.pushStatus("Writing Z88 input files failed!") _inputFileName = os.path.splitext(os.path.basename(path))[0] # AFAIK empty for z88 print(path) print(_inputFileName)