Skip to content
Snippets Groups Projects
Commit c4a51591 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Update UFL to 2016.2

parent 64fe595f
No related branches found
No related tags found
No related merge requests found
...@@ -139,6 +139,14 @@ def split_expression(expr): ...@@ -139,6 +139,14 @@ def split_expression(expr):
class FiniteElement(ufl.FiniteElement): class FiniteElement(ufl.FiniteElement):
__slots = ufl.FiniteElement.__slots__ + ["dirichlet_expression", "dirichlet_constraints"]
def __new__(cls, *args, **kwargs):
kwargs.pop('dirichlet_constraints', None)
kwargs.pop('dirichlet_expression', None)
return ufl.FiniteElement.__new__(cls, *args, **kwargs)
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
if ('dirichlet_constraints' in kwargs) or ('dirichlet_expression' in kwargs): if ('dirichlet_constraints' in kwargs) or ('dirichlet_expression' in kwargs):
# Get dirichlet_constraints and convert it to Expression if necessary! # Get dirichlet_constraints and convert it to Expression if necessary!
......
ufl @ e64c3fae
Subproject commit 51edbb951d99d5e431aaf5abe85a48763473c939 Subproject commit e64c3fae7654848f4dc77754b74311758e7fb351
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment