From 8881c85a008ab78001bdff605688164231cd4089 Mon Sep 17 00:00:00 2001 From: Yexiang Date: Thu, 12 Dec 2024 11:50:00 -0500 Subject: [PATCH] refact: sorted boundary_dimtags --- opstool/pre/_read_gmsh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opstool/pre/_read_gmsh.py b/opstool/pre/_read_gmsh.py index aff527c..a88f68e 100644 --- a/opstool/pre/_read_gmsh.py +++ b/opstool/pre/_read_gmsh.py @@ -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):