From 21715bd9d6174a785221d8619bd39fb31f3c4b9e Mon Sep 17 00:00:00 2001 From: Daiane Iglesia Dolci <63597005+Ig-dolci@users.noreply.github.com> Date: Fri, 29 Nov 2024 09:09:32 +0000 Subject: [PATCH] Update firedrake/output/vtk_output.py Co-authored-by: Connor Ward --- firedrake/output/vtk_output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firedrake/output/vtk_output.py b/firedrake/output/vtk_output.py index 3b4141d0a7..23072c5019 100644 --- a/firedrake/output/vtk_output.py +++ b/firedrake/output/vtk_output.py @@ -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: