Skip to content

Commit

Permalink
refact: sorted boundary_dimtags
Browse files Browse the repository at this point in the history
  • Loading branch information
yexiang1992 committed Dec 12, 2024
1 parent a22de98 commit 8881c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opstool/pre/_read_gmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def get_boundary_dim_tags(
for dim, etag in entity_tags:
boundary_dimtags.append((dim, etag))
_get_boundary_dim_tags(boundary_dimtags, entity_tags, self.gmsh_entities)
return list(set(boundary_dimtags))
return sorted(list(set(boundary_dimtags)), key=lambda x: (x[0], x[1]))


def _get_boundary_dim_tags(boundary_dimtags, dim_entity_tags, entites):
Expand Down

0 comments on commit 8881c85

Please sign in to comment.