@@ -187,7 +187,7 @@ def get_mesh(self, return_tag_to_elements_map=False):
187
187
group_base_elem_nr = 0
188
188
189
189
tag_to_meshwide_elements = {}
190
- tag_to_faces = []
190
+ tag_to_group_faces = []
191
191
192
192
for group_el_type , ngroup_elements in el_type_hist .items ():
193
193
if group_el_type .dimensions != mesh_bulk_dim :
@@ -267,7 +267,7 @@ def get_mesh(self, return_tag_to_elements_map=False):
267
267
268
268
group_base_elem_nr += group .nelements
269
269
270
- group_tag_to_faces = {}
270
+ tag_to_faces = {}
271
271
272
272
for tag , tagged_fvis in tag_to_fvis .items ():
273
273
for fid , ref_fvi in enumerate (group .face_vertex_indices ()):
@@ -285,19 +285,19 @@ def get_mesh(self, return_tag_to_elements_map=False):
285
285
np .sort (padded_fvis , axis = 1 ).T )
286
286
face_element_indices = face_element_index_pairs [1 , :]
287
287
if len (face_element_indices ) > 0 :
288
- elements_and_faces = np .stack (
288
+ group_faces = np .stack (
289
289
(
290
290
face_element_indices ,
291
291
np .full (face_element_indices .shape , fid )),
292
292
axis = - 1 )
293
- if tag in group_tag_to_faces :
294
- group_tag_to_faces [tag ] = np .concatenate ((
295
- group_tag_to_faces [tag ],
296
- elements_and_faces ))
293
+ if tag in tag_to_faces :
294
+ tag_to_faces [tag ] = np .concatenate ((
295
+ tag_to_faces [tag ],
296
+ group_faces ))
297
297
else :
298
- group_tag_to_faces [tag ] = elements_and_faces
298
+ tag_to_faces [tag ] = group_faces
299
299
300
- tag_to_faces .append (group_tag_to_faces )
300
+ tag_to_group_faces .append (tag_to_faces )
301
301
302
302
for tag in tag_to_meshwide_elements .keys ():
303
303
tag_to_meshwide_elements [tag ] = np .array (
@@ -314,7 +314,7 @@ def get_mesh(self, return_tag_to_elements_map=False):
314
314
if is_conforming and self .tags :
315
315
from meshmode .mesh import _compute_facial_adjacency_from_vertices
316
316
facial_adjacency_groups = _compute_facial_adjacency_from_vertices (
317
- groups , np .int32 , np .int8 , tag_to_faces )
317
+ groups , np .int32 , np .int8 , tag_to_group_faces )
318
318
319
319
mesh = Mesh (
320
320
vertices , groups ,
0 commit comments