Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #599 from OP2/wence/fix/variable-layers-subset
Browse files Browse the repository at this point in the history
codegen: Correct layers array indexing for subsets
  • Loading branch information
wence- authored Sep 4, 2020
2 parents 889d800 + f25f890 commit 1ff2577
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyop2/codegen/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,6 @@ def layer_extents(self):
def _layer_index(self):
if self.constant_layers:
return FixedIndex(0)
if self.subset:
return self._loop_index
else:
return self.loop_index

Expand Down

0 comments on commit 1ff2577

Please sign in to comment.