From 34669b72a50d1b7bc1dec12b552946dbd7717248 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Thu, 19 Dec 2024 11:17:09 -0600 Subject: [PATCH] update comment --- firedrake/assemble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firedrake/assemble.py b/firedrake/assemble.py index 347f2aca90..875d27862e 100644 --- a/firedrake/assemble.py +++ b/firedrake/assemble.py @@ -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)