Skip to content

Commit

Permalink
FEM: ccx tools, debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Jan 4, 2019
1 parent 2e6dac1 commit 76541ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mod/Fem/femtools/ccxtools.py
Expand Up @@ -645,7 +645,8 @@ 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('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.\n')
# https://forum.freecadweb.org/viewtopic.php?f=18&t=31303&start=10#p260743
else:
FreeCAD.Console.PrintError("CalculiX failed with exit code {}\n".format(ret_code))
FreeCAD.Console.PrintMessage("--------start of stderr-------\n")
Expand All @@ -659,7 +660,7 @@ def ccx_run(self):
self.has_nonpositive_jacobians()
FreeCAD.Console.PrintMessage("\n--------end problems---------\n")
else:
FreeCAD.Console.PrintMessage("CalculiX finished without error\n")
FreeCAD.Console.PrintMessage("CalculiX finished without error.\n")

def run(self):
message = self.check_prerequisites()
Expand Down Expand Up @@ -747,6 +748,7 @@ def has_nonpositive_jacobians(self):
return False

def load_results(self):
FreeCAD.Console.PrintMessage('We will load the ccx frd and dat result file.\n')
self.results_present = False
self.load_results_ccxfrd()
self.load_results_ccxdat()
Expand Down

0 comments on commit 76541ca

Please sign in to comment.