FEM: gmsh tools, fix writing groups and reactivate unit test for solve frame work

This commit is contained in:
Bernd Hahnebach
2019-09-02 19:45:37 +02:00
parent 6c8163e091
commit cab9145a81
2 changed files with 7 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ from femtest.testmesh import TestMeshCommon
from femtest.testmesh import TestMeshEleTetra10
from femtest.testresult import TestResult
from femtest.testccxtools import TestCcxTools
#from femtest.testsolverframework import TestSolverFrameWork
from femtest.testsolverframework import TestSolverFrameWork
# dummy usage to get flake8 and lgtm quiet
False if TestFemCommon.__name__ else True
@@ -47,7 +47,7 @@ False if TestMeshEleTetra10.__name__ else True
False if TestMeshEleTetra10.__name__ else True
False if TestResult.__name__ else True
False if TestCcxTools.__name__ else True
#False if TestSolverFrameWork.__name__ else True
False if TestSolverFrameWork.__name__ else True
# For more information on how to run a specific test class or a test method see

View File

@@ -604,8 +604,12 @@ class GmshTools():
if ele_nr:
ele_nr = ele_nr.rstrip(", ")
# print(ele_nr)
curly_br_s = "{"
curly_br_e = "}"
# explicit use double quotes in geo file
geo.write(
"Physical " + physical_type + "("" + group + "") = {" + ele_nr + "};\n"
'Physical {}("{}") = {}{}{};\n'
.format(physical_type, group, curly_br_s, ele_nr, curly_br_e)
)
geo.write("\n")
geo.write("// Characteristic Length\n")