Skip to content

Commit 3e6cc92

Browse files
pbrubeckjorgensd
andauthored
Update ufl/algorithms/remove_component_tensors.py
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
1 parent 0fa0eec commit 3e6cc92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ufl/algorithms/remove_component_tensors.py

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def indexed(self, o):
8888
# Replace inner indices first
8989
v = map_expr_dag(self, o2)
9090
# Replace outer indices
91+
# NOTE: Replace with `fimap = dict(zip(i2, i1, strict=True))` when
92+
# Python>=3.10
9193
assert len(i2) == len(i1)
9294
fimap = dict(zip(i2, i1))
9395
rule = IndexReplacer(fimap)

0 commit comments

Comments
 (0)