Skip to content

Commit ab55209

Browse files
committed
update
1 parent 466980e commit ab55209

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

gmsh/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Recommended Usage
1717

1818
Create a .geo file with physical groups labeling volumes and surfaces. The surfaces should denote contact boundary conditions. Running the script will add interfaces. It will also ensure that the interfaces do not share vertices with any other interfaces or contacts.
1919

20-
The input mesh must be created with the older Gmsh format:
20+
The input mesh must be created with the older Gmsh format. Using ``examples/mobility/gmsh_mos2d.msh`` in the devsim distribution as an example:
2121

2222
::
2323

gmsh/test_convert.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,26 +327,24 @@ def fix_surface_conflicts(dimension, surfaces, pname_map, name_priority):
327327
continue
328328

329329
other_boundaries = set([])
330-
removed = 0
331-
kept = 0
332330
local_new_elements = []
333331
local_vertexes = set([])
334332

335333
for surface in elements:
336334
nset = set(surface[sl])
337335
if nset.intersection(all_vertexes):
338-
removed += 1
339336
for lid, lvertexes in priority_vertexes.items():
340337
tmp = lvertexes.intersection(nset)
341338
if tmp:
342339
other_boundaries.add('"%s"' % pname_map[lid][1])
343340
else:
344-
kept += 1
345341
local_new_elements.append(surface)
346342
local_vertexes |= nset
347343
new_surfaces.extend(local_new_elements)
348344
all_vertexes |= local_vertexes
349345
priority_vertexes[phys_id] = local_vertexes
346+
kept = len(local_new_elements)
347+
removed = len(elements) - kept
350348
if removed > 0:
351349
print('INFO: removed %d/%d elements from generated surface "%s" for overlap with %s' % (removed, removed+kept, pname_map[phys_id][1], ", ".join(other_boundaries)))
352350
if kept == 0:

0 commit comments

Comments
 (0)