Skip to content
Open
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: 6 additions & 0 deletions tsfc/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,12 @@ def predicate(index):
# but we don't for now.
evaluation, = impero_utils.preprocess_gem([evaluation])
pairs = unconcatenate([(return_expr, evaluation)], cache=concatenate_cache)
# Contract each block once the Concatenate nodes are gone. An H(div) or
# H(curl) element selects the component each block maps to with a Delta,
# and only here, with the blocks separated, do those Deltas meet pairwise
# and cancel the pairs that map to different components.
pairs = [(variable, gem.optimise.contraction(expression))
for variable, expression in pairs]
impero_c = impero_utils.compile_gem(pairs, return_indices)
index_names = {idx: f"p{i}" for (i, idx) in enumerate(basis_indices)}
# Handle kernel interface requirements
Expand Down
Loading