From 815fe13481c007c0215bd84c8efa0cca4a553261 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Fri, 9 Dec 2016 10:44:34 +0100 Subject: [PATCH] Intermediate commit - entropic stuff --- field.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/field.py b/field.py index 70031708a..6274de513 100644 --- a/field.py +++ b/field.py @@ -83,9 +83,9 @@ class Field: the outer loop loops over dimension 2, the second outer over dimension 1, and the inner loop over dimension 0. Also allowed: the strings 'numpy' (0,1,..d) or 'reverseNumpy' (d, ..., 1, 0) """ - if layout == 'numpy': + if layout == 'numpy' or layout == 'C': layout = tuple(range(spatialDimensions)) - elif layout == 'reverseNumpy': + elif layout == 'reverseNumpy' or layout == 'F': layout = tuple(reversed(range(spatialDimensions))) if len(layout) != spatialDimensions: raise ValueError("Layout") -- GitLab