Skip to content

Commit

Permalink
Update test_hessian.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ig-dolci authored Feb 15, 2024
1 parent 79942ed commit 5763641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/firedrake_adjoint/test_hessian.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ def test_nonlinear():

u = Function(V)
v = TestFunction(V)
bv = Function(R, val=1)
bc = DirichletBC(V, bv, "on_boundary")
bc = DirichletBC(V, Function(R, val=1), "on_boundary")

F = inner(grad(u), grad(v)) * dx - u**2*v*dx - f * v * dx
solve(F == 0, u, bc)
Expand Down

0 comments on commit 5763641

Please sign in to comment.