Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion finat/finiteelementbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ def dual_evaluation(self, fn):
# ignoring any shape indices to avoid hitting the sum-
# factorisation index limit (this is a bit of a hack).
# Really need to do a more targeted job here.
evaluation = gem.optimise.contraction(evaluation, shape_indices)
try:
evaluation = gem.optimise.contraction(evaluation, shape_indices)
except NotImplementedError as e:
if str(e) != "Too many indices for sum factorisation!":
raise
return evaluation, basis_indices

@abstractproperty
Expand Down