Skip to content

Commit

Permalink
Fixes for Cell.geometric_dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Nov 14, 2024
1 parent 8ede8bd commit 89e8adc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ngsPETSc/utils/firedrake/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ def createFromTopology(self, topology, name, comm):
'''
cell = topology.ufl_cell()
geometric_dim = topology.topology_dm.getCoordinateDim()
cell = cell.reconstruct(geometric_dimension=geometric_dim)
element = fd.VectorElement("Lagrange", cell, 1)
element = fd.VectorElement("Lagrange", cell, 1, dim=geometric_dim)
# Create mesh object
self.firedrakeMesh = fd.MeshGeometry.__new__(fd.MeshGeometry, element, comm)
self.firedrakeMesh._init_topology(topology)
Expand Down

0 comments on commit 89e8adc

Please sign in to comment.