Skip to content

Commit

Permalink
Add set of continuous families not requiring a restriction (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd authored Nov 22, 2021
1 parent a4b7ab0 commit 22c21bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ufl/algorithms/apply_restrictions.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def coefficient(self, o):
d = e.degree()
f = e.family()
# TODO: Move this choice to the element class?
if (f == "Lagrange" and d > 0) or f == "Real":
continuous_families = ["Lagrange", "Q", "S"]
if (f in continuous_families and d > 0) or f == "Real":
# If the coefficient _value_ is _fully_ continuous
return self._default_restricted(o) # Must still be computed from one of the sides, we just don't care which
else:
Expand Down

0 comments on commit 22c21bd

Please sign in to comment.