Skip to content

Commit 933fe20

Browse files
committed
Fixup.
1 parent 46bda91 commit 933fe20

5 files changed

+8
-7
lines changed

demo/demo_kirchhoff-love-clamped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def all_boundary(x):
211211
L,
212212
bcs=bcs,
213213
petsc_options={"ksp_type": "preonly", "pc_type": "lu", "pc_factor_mat_solver_type": "mumps"},
214-
petsc_options_prefix="problem_"
214+
petsc_options_prefix="problem_",
215215
)
216216
u_h = problem.solve()
217217

demo/demo_nonlinear-naghdi-clamped-semicylinder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#
2929
# %%
3030
import typing
31+
import warnings
3132
from pathlib import Path
3233

3334
# %%
@@ -50,6 +51,8 @@
5051
from dolfinx.nls.petsc import NewtonSolver
5152
from ufl import grad, inner, split
5253

54+
warnings.simplefilter("default", DeprecationWarning)
55+
5356
# %% [markdown]
5457
# We consider a semi-cylindrical shell of radius $r$ and axis length $L$. The
5558
# shell is made of a linear elastic isotropic homogeneous material with Young
@@ -545,9 +548,7 @@ def compute_cell_contributions(V, points):
545548
at that point"""
546549
# Determine what process owns a point and what cells it lies within
547550
mesh = V.mesh
548-
point_ownership_data = dolfinx.geometry.determine_point_ownership(
549-
mesh, points, 1e-6
550-
)
551+
point_ownership_data = dolfinx.geometry.determine_point_ownership(mesh, points, 1e-6)
551552

552553
owning_points = np.asarray(point_ownership_data.dest_points).reshape(-1, 3)
553554
cells = point_ownership_data.dest_cells

demo/demo_reissner-mindlin-clamped-tdnns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def all_boundary(x):
244244
L,
245245
bcs=bcs,
246246
petsc_options={"ksp_type": "preonly", "pc_type": "lu", "pc_factor_mat_solver_type": "mumps"},
247-
petsc_options_prefix="problem_"
247+
petsc_options_prefix="problem_",
248248
)
249249
u_h = problem.solve()
250250

demo/demo_reissner-mindlin-clamped.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def all_boundary(x):
222222
-F,
223223
bcs=bcs,
224224
petsc_options={"ksp_type": "preonly", "pc_type": "lu", "pc_factor_mat_solver_type": "mumps"},
225-
petsc_options_prefix="problem_"
225+
petsc_options_prefix="problem_",
226226
)
227227
u_ = problem.solve()
228228

demo/demo_reissner-mindlin-simply-supported.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def make_bc(value, V, on_boundary):
239239
-F,
240240
bcs=bcs,
241241
petsc_options={"ksp_type": "preonly", "pc_type": "lu", "pc_factor_mat_solver_type": "mumps"},
242-
petsc_options_prefix="problem_"
242+
petsc_options_prefix="problem_",
243243
)
244244
u_ = problem.solve()
245245

0 commit comments

Comments
 (0)