Skip to content
Permalink
Browse files

FEM: ccx tools, debug prints

  • Loading branch information...
berndhahnebach authored and wwmayer committed Jan 4, 2019
1 parent 2e6dac1 commit 76541ca1b567fa331c92f1148b43176c09267537
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/Mod/Fem/femtools/ccxtools.py
@@ -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")
@@ -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()
@@ -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()

0 comments on commit 76541ca

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