Skip to content

Commit fd9a3f6

Browse files
authored
Update firedrake/interpolation.py
1 parent cc18063 commit fd9a3f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firedrake/interpolation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,9 @@ def _interpolator(V, tensor, expr, subset, arguments, access, bcs=None):
10081008
if access == op2.INC:
10091009
callables += (tensor.zero,)
10101010

1011+
# For the matfree adjoint 1-form and the 0-form, the cellwise kernel will add multiple
1012+
# contributions from the facet DOFs of the dual argument.
1013+
# The incoming Cofunction needs to be weighted by the reciprocal of the DOF multiplicity.
10111014
needs_weight = isinstance(dual_arg, ufl.Cofunction) and not to_element.is_dg()
10121015
if needs_weight:
10131016
# Compute the reciprocal of the DOF multiplicity

0 commit comments

Comments
 (0)