From b7205955d924c98f07450088886fa3404422c75c Mon Sep 17 00:00:00 2001 From: Markus Holzer <markus.holzer@fau.de> Date: Thu, 4 Jul 2024 12:32:37 +0200 Subject: [PATCH] Fix remaining tests --- src/pystencils/gpu/indexing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystencils/gpu/indexing.py b/src/pystencils/gpu/indexing.py index 0b062baf8..c1b0c0936 100644 --- a/src/pystencils/gpu/indexing.py +++ b/src/pystencils/gpu/indexing.py @@ -226,7 +226,7 @@ class BlockIndexing(AbstractIndexing): end = [s.stop if s.stop != 0 else 1 for s in numeric_iteration_slice] for i, s in enumerate(numeric_iteration_slice): if s.step and s.step != 1: - end[i] = div_floor(end[i], s.step) + end[i] = div_ceil(s.stop - s.start, s.step) + s.start if self._dim < 4: conditions = [c < e for c, e in zip(self.coordinates, end)] -- GitLab