aboutsummaryrefslogtreecommitdiff
path: root/boltzgen/kernel/target/cell_index.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-10-29 19:25:38 +0100
committerAdrian Kummerlaender2019-10-29 19:25:38 +0100
commita6dcb57cff9a1dd9de7e5fafdc87230489be87b9 (patch)
tree427e522a5593e71e19f0091bb9b081b9d125e9f9 /boltzgen/kernel/target/cell_index.py
parentd801f538a090838a15e74282239369b73723c4f4 (diff)
downloadboltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.tar
boltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.tar.gz
boltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.tar.bz2
boltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.tar.lz
boltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.tar.xz
boltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.tar.zst
boltzgen-a6dcb57cff9a1dd9de7e5fafdc87230489be87b9.zip
Move further generator arguments into its constructor
Diffstat (limited to 'boltzgen/kernel/target/cell_index.py')
-rw-r--r--boltzgen/kernel/target/cell_index.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/boltzgen/kernel/target/cell_index.py b/boltzgen/kernel/target/cell_index.py
deleted file mode 100644
index 7e74dc5..0000000
--- a/boltzgen/kernel/target/cell_index.py
+++ /dev/null
@@ -1,18 +0,0 @@
-class CellIndexer:
- def __init__(self, geometry):
- self.geometry = geometry
-
- def neighbor(self, c_i):
- return self.gid(*[ c for _, c in enumerate(c_i) ])
-
-class XYZ(CellIndexer):
- pass
-
- def gid(self, x, y, z=0):
- return x*self.geometry.size_y*self.geometry.size_z + y*self.geometry.size_z + z
-
-class ZYX(CellIndexer):
- pass
-
- def gid(self, x, y, z=0):
- return z*self.geometry.size_x*self.geometry.size_y + y*self.geometry.size_x + x