Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Brubeck <[email protected]>
  • Loading branch information
JHopeCollins and pbrubeck authored Dec 16, 2024
1 parent 1dd4122 commit 38bf268
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 38bf268

Please sign in to comment.