Skip to content

Commit

Permalink
FEM: gmsh tools, fix bracket error
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jun 9, 2019
1 parent d818a96 commit b3de11d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Mod/Fem/femmesh/gmshtools.py
Expand Up @@ -607,9 +607,16 @@ def write_geo(self):
''.join((str(n + 1) + ', ') for n in self.ele_node_map[e])
).rstrip(', ')
geo.write("// " + e + "\n")
elestr1 = "{"
elestr2 = "}"
geo.write(
"Characteristic Length { {} } = {};\n"
.format(ele_nodes, self.ele_length_map[e])
"Characteristic Length {} {} {} = {};\n"
.format(
elestr1,
ele_nodes,
elestr2,
self.ele_length_map[e]
)
)
geo.write("\n")

Expand Down

0 comments on commit b3de11d

Please sign in to comment.