Skip to content

Commit

Permalink
Update firedrake/utility_meshes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Ward <[email protected]>
  • Loading branch information
ksagiyam and connorjward authored Dec 19, 2024
1 parent 7b5c3c0 commit ff4635e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion firedrake/utility_meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1873,7 +1873,16 @@ def PeriodicBoxMesh(
if hexahedral:
if len(directions) != 3:
raise ValueError(f"directions must have exactly dim (=3) elements : Got {directions}")
plex = PETSc.DMPlex().createBoxMesh((nx, ny, nz), lower=(0., 0., 0.), upper=(Lx, Ly, Lz), simplex=False, periodic=directions, interpolate=True, sparseLocalize=False, comm=comm)
plex = PETSc.DMPlex().createBoxMesh(
(nx, ny, nz),
lower=(0., 0., 0.),
upper=(Lx, Ly, Lz),
simplex=False,
periodic=directions,
interpolate=True,
sparseLocalize=False,
comm=comm,
)
m = mesh.Mesh(
plex,
reorder=reorder,
Expand Down

0 comments on commit ff4635e

Please sign in to comment.