Skip to content

Commit

Permalink
Merge branch 'JHopeCollins/cofunction_fieldsplit' of https://github.c…
Browse files Browse the repository at this point in the history
…om/firedrakeproject/firedrake into JHopeCollins/cofunction_fieldsplit
  • Loading branch information
JHopeCollins committed Dec 16, 2024
2 parents 026c2f0 + 38bf268 commit 8bf436a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firedrake/formmanipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def cofunction(self, o):
# on a two-form then we return a zero form,
# analogously to the off components of arguments.
if len(self.blocks) == 2:
itest, itrial = self.blocks[0], self.blocks[1]
itest, itrial = self.blocks
on_diag = (itest == itrial)
else:
on_diag = True
Expand All @@ -174,7 +174,7 @@ def cofunction(self, o):
from firedrake import MixedFunctionSpace
from pyop2 import MixedDat
W = MixedFunctionSpace([V_is[i] for i in indices])
c = Cofunction(W.dual(), val=MixedDat(o.subfunctions[i].dat
c = Cofunction(W.dual(), val=MixedDat(o.dat[i]
for i in indices))
else:
c = ZeroBaseForm(o.arguments())
Expand Down

0 comments on commit 8bf436a

Please sign in to comment.