From 79863c57edc51789879a298415dbf0fab87882e8 Mon Sep 17 00:00:00 2001 From: Marcus Mohr <marcus.mohr@lmu.de> Date: Wed, 26 Feb 2025 17:57:14 +0100 Subject: [PATCH] Make LagrangianFunctionSpace.is_continuous return False for p0 --- hog/function_space.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hog/function_space.py b/hog/function_space.py index 2d27469..83bdde2 100644 --- a/hog/function_space.py +++ b/hog/function_space.py @@ -164,7 +164,10 @@ class LagrangianFunctionSpace(FunctionSpace): @property def is_continuous(self) -> bool: - return True + if self._degree == 0: + return False + else: + return True @property def degree(self) -> int: -- GitLab