From ff4635e63b2b726a0ca9de5fd6cc87bb75060f52 Mon Sep 17 00:00:00 2001 From: ksagiyam <46749170+ksagiyam@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:50:04 +0000 Subject: [PATCH] Update firedrake/utility_meshes.py Co-authored-by: Connor Ward --- firedrake/utility_meshes.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/firedrake/utility_meshes.py b/firedrake/utility_meshes.py index 1c52b3c56c..99d687449e 100644 --- a/firedrake/utility_meshes.py +++ b/firedrake/utility_meshes.py @@ -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,