Skip to content

Commit

Permalink
Update firedrake/output/vtk_output.py
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Ward <[email protected]>
  • Loading branch information
Ig-dolci and connorjward authored Nov 29, 2024
1 parent b3d8705 commit 21715bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firedrake/output/vtk_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ def _prepare_output(self, function, max_elem):
raise ValueError("Unsupported shape %s" % (shape, ))
if isinstance(function, Function):
output = Function(V)
elif isinstance(function, Cofunction):
else:
assert isinstance(function, Cofunction)
output = Function(V.dual())

if self.project:
Expand Down

0 comments on commit 21715bd

Please sign in to comment.