Skip to content
Permalink
Browse files

FEM: ccx tools, ccx run, set ret code to 0 for check analysis and ret…

…urn ret code
  • Loading branch information...
berndhahnebach authored and wwmayer committed Jan 4, 2019
1 parent 76541ca commit 37a2cceab3225d72a4fe0df4d6e2f9414114779a
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Mod/Fem/femtools/ccxtools.py
@@ -645,8 +645,9 @@ def ccx_run(self):
progress_bar.stop()
if ret_code or self.ccx_stderr:
if ret_code == 201 and self.solver.AnalysisType == 'check':
FreeCAD.Console.PrintMessage('It seams we run into NOANALYSIS problem, thus workaround for wrong exit code for *NOANALYSIS check.\n')
FreeCAD.Console.PrintMessage('It seams we run into NOANALYSIS problem, thus workaround for wrong exit code for *NOANALYSIS check and set ret_code to 0.\n')
# https://forum.freecadweb.org/viewtopic.php?f=18&t=31303&start=10#p260743
ret_code = 0
else:
FreeCAD.Console.PrintError("CalculiX failed with exit code {}\n".format(ret_code))
FreeCAD.Console.PrintMessage("--------start of stderr-------\n")
@@ -661,6 +662,7 @@ def ccx_run(self):
FreeCAD.Console.PrintMessage("\n--------end problems---------\n")
else:
FreeCAD.Console.PrintMessage("CalculiX finished without error.\n")
return ret_code

def run(self):
message = self.check_prerequisites()

0 comments on commit 37a2cce

Please sign in to comment.
You can’t perform that action at this time.