Skip to content

Commit

Permalink
FEM: unit tests, remove German comment made for bernd only
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Feb 24, 2018
1 parent 6699744 commit 7e6792e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Mod/Fem/femtest/testccxtools.py
Expand Up @@ -271,26 +271,11 @@ def test_2_static_multiple_material(self):
ret = testtools.compare_inp_files(static_analysis_inp_file, static_multiplemat_dir + self.mesh_name + '.inp')
self.assertFalse(ret, "ccxtools write_inp_file test failed.\n{}".format(ret))

'''
# read results and compare them
# do we really need to check result reading on any example
# mhh not for any static but for sure once of each for static, freq, thermo, Flow
fea.setup_working_dir(self.test_file_dir)
fea.set_base_name(static_base_name)
fea.set_inp_file_name()
fea.load_results()
static_expected_values = self.test_file_dir + "cube_multiplemat_expected_values"
ret = testtools.compare_stats(fea, static_expected_values, 'CalculiX_static_results')
self.assertFalse(ret, "Invalid results read from .frd file")
'''

static_save_fc_file = static_multiplemat_dir + static_base_name + '.fcstd'
fcc_print('Save FreeCAD file for static analysis to {}...'.format(static_save_fc_file))
self.active_doc.saveAs(static_save_fc_file)
fcc_print('--------------- End of FEM ccxtools multiple material test ---------------')

# warum heisst das inp file Mesh.inp ? Besser wuerde doch der base name sein ? dann auch ein self weniger ...

def test_3_freq_analysis(self):
fcc_print('--------------- Start of FEM tests ---------------')
self.active_doc.addObject("Part::Box", "Box")
Expand Down

0 comments on commit 7e6792e

Please sign in to comment.