Skip to content

Commit

Permalink
Work around DirichletBC state lock
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Nov 10, 2023
1 parent 0f9d3db commit 84470c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icepack/solvers/flow_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def setup(self, **kwargs):
# Create homogeneous BCs for the Dirichlet part of the boundary
u = self._fields["velocity"]
V = u.function_space()
bcs = firedrake.DirichletBC(V, u, self._dirichlet_ids)
bcs = firedrake.DirichletBC(V, u.copy(deepcopy=True), self._dirichlet_ids)
if not self._dirichlet_ids:
bcs = None

Expand Down

0 comments on commit 84470c2

Please sign in to comment.