From ee5f1daaa28788380d8a9d6b2ba4980af7df43cb Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Thu, 14 Nov 2024 16:39:14 +0000 Subject: [PATCH] Fix PhysicalPullback --- ufl/pullback.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ufl/pullback.py b/ufl/pullback.py index c2bf18d84..f8b755552 100644 --- a/ufl/pullback.py +++ b/ufl/pullback.py @@ -560,6 +560,8 @@ def physical_value_shape(self, element, domain) -> typing.Tuple[int, ...]: Returns: The value shape when the pull back is applied to the given element """ + if element.reference_value_shape == (): + return () raise NotImplementedError()