Skip to content

Commit

Permalink
interpolation_points exposed as array
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed Jan 13, 2025
1 parent a2e7273 commit 15963e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/demo_nonlinear-naghdi-clamped-semicylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def gamma(F, d):
# Calculate the factor alpha as a function of the mesh size h
h = ufl.CellDiameter(mesh)
alpha_FS = functionspace(mesh, element("DG", cell, 0))
alpha_expr = Expression(t**2 / h**2, alpha_FS.element.interpolation_points())
alpha_expr = Expression(t**2 / h**2, alpha_FS.element.interpolation_points)
alpha = Function(alpha_FS)
alpha.interpolate(alpha_expr)

Expand Down Expand Up @@ -693,7 +693,7 @@ def F(self, x: PETSc.Vec, b: PETSc.Vec) -> None:

# Interpolate phi in the [P2]³ Space
phi_FS = functionspace(mesh, blocked_element(P2, shape=(3,)))
phi_expr = Expression(phi0_ufl + u_P2B3, phi_FS.element.interpolation_points())
phi_expr = Expression(phi0_ufl + u_P2B3, phi_FS.element.interpolation_points)
phi_func = Function(phi_FS)
phi_func.interpolate(phi_expr)

Expand Down

0 comments on commit 15963e9

Please sign in to comment.