Skip to content
Snippets Groups Projects
Commit ba9cc538 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

Merge branch 'mohr/small-fix-for-p0' into 'main'

Make LagrangianFunctionSpace.is_continuous return False for P0

See merge request !41
parents 1fc4cda1 79863c57
No related branches found
No related tags found
1 merge request!41Make LagrangianFunctionSpace.is_continuous return False for P0
Pipeline #74696 passed with warnings
...@@ -164,7 +164,10 @@ class LagrangianFunctionSpace(FunctionSpace): ...@@ -164,7 +164,10 @@ class LagrangianFunctionSpace(FunctionSpace):
@property @property
def is_continuous(self) -> bool: def is_continuous(self) -> bool:
return True if self._degree == 0:
return False
else:
return True
@property @property
def degree(self) -> int: def degree(self) -> int:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment