Skip to content

Commit 2fbea40

Browse files
author
Umberto Zerbinati
committed
Merge branch 'main' into JDBetteridge/update_build_system
2 parents 7fb9234 + a645e06 commit 2fbea40

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ngsPETSc/utils/firedrake/hierarchies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def NetgenHierarchy(mesh, levs, flags):
191191
-degree, either an integer denoting the degree of curvature of all levels of
192192
the mesh or a list of levs+1 integers denoting the degree of curvature of
193193
each level of the mesh.
194-
-tol, geometric tollerance adopted in snapToNetgenDMPlex.
194+
-tol, geometric tolerance adopted in snapToNetgenDMPlex.
195195
-refinement_type, the refinment type to be used: uniform (default), Alfeld
196196
'''
197197
if mesh.geometric_dimension() == 3:
@@ -238,8 +238,8 @@ def NetgenHierarchy(mesh, levs, flags):
238238
if snap == "geometry":
239239
snapToNetgenDMPlex(ngmesh, rdm)
240240
#We construct a Firedrake mesh from the DMPlex mesh
241-
mesh = fd.Mesh(rdm, dim=meshes[-1].ufl_cell().geometric_dimension(), reorder=False,
242-
distribution_parameters=params, comm=comm)
241+
mesh = fd.Mesh(rdm, dim=meshes[-1].geometric_dimension(), reorder=False,
242+
distribution_parameters=params, comm=comm)
243243
if optMoves:
244244
#Optimises the mesh, for example smoothing
245245
if ngmesh.dim == 2:

ngsPETSc/utils/firedrake/meshes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ def createFromTopology(self, topology, name, comm):
289289
'''
290290
cell = topology.ufl_cell()
291291
geometric_dim = topology.topology_dm.getCoordinateDim()
292-
cell = cell.reconstruct(geometric_dimension=geometric_dim)
293-
element = fd.VectorElement("Lagrange", cell, 1)
292+
element = fd.VectorElement("Lagrange", cell, 1, dim=geometric_dim)
294293
# Create mesh object
295294
self.firedrakeMesh = fd.MeshGeometry.__new__(fd.MeshGeometry, element, comm)
296295
self.firedrakeMesh._init_topology(topology)

0 commit comments

Comments
 (0)