We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dcd1d4 commit 7f273f9Copy full SHA for 7f273f9
pytato/transform/materialize.py
@@ -191,7 +191,11 @@ def _materialize_if_mpms(expr: Array,
191
192
nsuccessors = 0
193
for successor in successors:
194
- # Handle indexing with heavy reuse, if the sizes are known ahead of time
+ # Handle indexing with heavy reuse, if the sizes are known ahead of time.
195
+ # This can occur when the elements of a smaller array are used repeatedly to
196
+ # compute the elements of a larger array. (Example: In meshmode's direct
197
+ # connection code, this happens when injecting data from a smaller
198
+ # discretization into a larger one, such as BTAG_ALL -> FACE_RESTR_ALL.)
199
if (
200
isinstance(successor, IndexBase)
201
and isinstance(successor.size, int)
0 commit comments