Skip to content

Commit

Permalink
Merge pull request #41 from NGSolve/JDBetteridge/firedrake_uid_changes
Browse files Browse the repository at this point in the history
Add comm to createFromTopology method
  • Loading branch information
JDBetteridge authored Jun 19, 2024
2 parents 4914d81 + ebec340 commit 37cdd03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngsPETSc/utils/firedrake/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def __init__(self, mesh, netgen_flags, user_comm=fd.COMM_WORLD):
else:
raise ValueError("Mesh format not recognised.")

def createFromTopology(self, topology, name):
def createFromTopology(self, topology, name, comm):
'''
Internal method to construct a mesh from a mesh topology, copied from Firedrake.
Expand All @@ -242,7 +242,7 @@ def createFromTopology(self, topology, name):
cell = cell.reconstruct(geometric_dimension=geometric_dim)
element = fd.VectorElement("Lagrange", cell, 1)
# Create mesh object
self.firedrakeMesh = fd.MeshGeometry.__new__(fd.MeshGeometry, element)
self.firedrakeMesh = fd.MeshGeometry.__new__(fd.MeshGeometry, element, comm)
self.firedrakeMesh._init_topology(topology)
self.firedrakeMesh.name = name
# Adding Netgen mesh and inverse sfBC as attributes
Expand Down

0 comments on commit 37cdd03

Please sign in to comment.