From 31bd0e0aa89392fe4a46990033119dbbea5ee4e5 Mon Sep 17 00:00:00 2001
From: Markus Holzer <markus.holzer@fau.de>
Date: Mon, 14 Aug 2023 14:54:12 +0200
Subject: [PATCH] Fix small mistake

---
 pystencils/gpu/indexing.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pystencils/gpu/indexing.py b/pystencils/gpu/indexing.py
index d8e4e6187..714aa113d 100644
--- a/pystencils/gpu/indexing.py
+++ b/pystencils/gpu/indexing.py
@@ -143,7 +143,7 @@ class BlockIndexing(AbstractIndexing):
                  maximum_block_size=(1024, 1024, 64), device_number=None):
         super(BlockIndexing, self).__init__(iteration_space, data_layout)
 
-        if self._dim < 4:
+        if self._dim > 4:
             raise NotImplementedError("This indexing scheme supports at most 4 spatial dimensions")
 
         if permute_block_size_dependent_on_layout and self._dim < 4:
-- 
GitLab