Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
ksagiyam committed Dec 12, 2024
1 parent f641b25 commit 1a56816
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firedrake/variational_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def solve(self, bounds=None):
problem_dms.append(solution_dm)

for dbc in problem.dirichlet_bcs():
dbc.apply(problem.u_restrict)
if dbc.function_space_parent == problem.u_restrict.function_space():
dbc.apply(problem.u_restrict)

if bounds is not None:
lower, upper = bounds
Expand Down

0 comments on commit 1a56816

Please sign in to comment.