Skip to content

Commit

Permalink
Partial fix in view of @pef review
Browse files Browse the repository at this point in the history
Signed-off-by: Umberto Zerbinati <[email protected]>
  • Loading branch information
Umberto Zerbinati committed Mar 18, 2024
1 parent f1bc18c commit 6c17139
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ngsPETSc/utils/firedrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def curveField(self, order, tol=1e-8):
def splitToQuads(plex, dim, comm):
'''
This method splits a Netgen mesh to quads, using a PETSc transform.
TODO: Improve support quad meshing.
@pef Get netgen to make a quad-dominant mesh, and then only split the triangles.
Current implementation will make for poor-quality meshes.
'''
if dim == 2:
transform = PETSc.DMPlexTransform().create(comm=comm)
Expand Down Expand Up @@ -211,7 +214,6 @@ def __init__(self, mesh, netgen_flags, user_comm=fd.COMM_WORLD):
#Checking the mesh format
if isinstance(mesh,(ngs.comp.Mesh,ngm.Mesh)):
if split2tets:
#Splits 2 tets
mesh = mesh.Split2Tets()
if split:
#Split mesh this includes Alfeld and Powell-Sabin
Expand Down

0 comments on commit 6c17139

Please sign in to comment.