Skip to content

Commit

Permalink
Unlazy dmats for NodalEnrichedElement
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Oct 29, 2023
1 parent 28d35bc commit cc48c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FIAT/polynomial_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ class PolynomialSet(object):
function.
"""

def __init__(self, ref_el, degree, embedded_degree, expansion_set, coeffs):
def __init__(self, ref_el, degree, embedded_degree, expansion_set, coeffs, dmats=None):
self.ref_el = ref_el
self.num_members = coeffs.shape[0]
self.degree = degree
self.embedded_degree = embedded_degree
self.expansion_set = expansion_set
self.coeffs = coeffs
self.dmats = []
self.dmats = dmats or []

def tabulate_new(self, pts):
return numpy.dot(self.coeffs,
Expand Down

0 comments on commit cc48c59

Please sign in to comment.