Skip to content

Commit

Permalink
Ensure consistent handling of mesh and topology names for Netgen and …
Browse files Browse the repository at this point in the history
…non-Netgen meshes
  • Loading branch information
MohamedAlyLoutfy committed Jan 15, 2025
1 parent 80a0f80 commit 132eb70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firedrake/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3064,7 +3064,7 @@ def Mesh(meshfile, **kwargs):
netgen_flags = kwargs.get("netgen_flags", {"quad": False, "transform": None, "purify_to_tets": False})
netgen_firedrake_mesh = FiredrakeMesh(meshfile, netgen_flags, user_comm)
plex = netgen_firedrake_mesh.meshMap.petscPlex
plex.setName(name)
plex.setName(_generate_default_mesh_topology_name(name))
else:
basename, ext = os.path.splitext(meshfile)
if ext.lower() in ['.e', '.exo']:
Expand Down Expand Up @@ -3092,7 +3092,7 @@ def Mesh(meshfile, **kwargs):
permutation_name=kwargs.get("permutation_name"),
comm=user_comm)
if netgen and isinstance(meshfile, netgen.libngpy._meshing.Mesh):
netgen_firedrake_mesh.createFromTopology(topology, name=plex.getName(), comm=user_comm)
netgen_firedrake_mesh.createFromTopology(topology, name=name, comm=user_comm)
mesh = netgen_firedrake_mesh.firedrakeMesh
else:
mesh = make_mesh_from_mesh_topology(topology, name)
Expand Down

0 comments on commit 132eb70

Please sign in to comment.