From 72e7097073b03e6584f603b905b5a4fc236d7def Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 28 Oct 2019 22:00:05 +0100 Subject: Use order-accepting ndindex method for generating cell indices --- boltzgen/geometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boltzgen/geometry.py b/boltzgen/geometry.py index 7cc406d..d4411ad 100644 --- a/boltzgen/geometry.py +++ b/boltzgen/geometry.py @@ -24,8 +24,8 @@ class Geometry: else: raise Exception('Geometry malformed') - def inner_cells(self): - for idx in numpy.ndindex(self.inner_size()): + def inner_cells(self, order='F'): + for idx in ndindex(self.inner_size(), order): yield tuple(map(lambda i: i + 1, idx)) def size(self): -- cgit v1.2.3