Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Dec 19, 2024
1 parent 40cf6d7 commit 34669b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firedrake/assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ def _apply_dirichlet_bc(self, tensor, bc):
if self._diagonal:
bc.set(tensor, self._weight)
elif not self._zero_bc_nodes:
# We cannot set primal data on a dual Cofunction, this will throw an error
# NOTE this will only work if tensor is a Function and not a Cofunction
bc.apply(tensor)
else:
bc.zero(tensor)
Expand Down

0 comments on commit 34669b7

Please sign in to comment.