FEM: elmer, use console print and delete not needed prints in unit test

This commit is contained in:
Bernd Hahnebach
2019-03-31 15:08:29 +02:00
committed by wmayer
parent 1842ab28ae
commit c0ee45e2cc
2 changed files with 3 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ __url__ = "http://www.freecadweb.org"
import subprocess
import os.path
import FreeCAD
import femtools.femutils as femutils
from .. import run
@@ -67,7 +69,7 @@ class Prepare(run.Prepare):
def run(self):
self.pushStatus("Preparing input files...\n")
print("Prepare testmode: " + str(self.testmode))
FreeCAD.Console.PrintMessage("Machine testmode: {}".format(self.testmode))
if self.testmode:
w = writer.Writer(self.solver, self.directory, True) # test mode
else:

View File

@@ -130,7 +130,6 @@ class TestSolverFrameWork(unittest.TestCase):
fcc_print('Checking FEM ccx solver for solver frame work......')
fcc_print('machine_ccx')
machine_ccx = solver_ccx_object.Proxy.createMachine(solver_ccx_object, solverframework_analysis_dir)
fcc_print('Machine testmode: ' + str(machine_ccx.testmode))
machine_ccx.target = femsolver.run.PREPARE
machine_ccx.start()
machine_ccx.join() # wait for the machine to finish.
@@ -165,7 +164,6 @@ class TestSolverFrameWork(unittest.TestCase):
# write input files
fcc_print('\nChecking FEM Elmer solver for solver frame work...')
machine_elmer = solver_elmer_object.Proxy.createMachine(solver_elmer_object, solverframework_analysis_dir, True)
fcc_print('Machine testmode: ' + str(machine_elmer.testmode))
machine_elmer.target = femsolver.run.PREPARE
machine_elmer.start()
machine_elmer.join() # wait for the machine to finish.