From b496dd5ead921804f1dd22bf0a31e174e42f2e83 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de> Date: Thu, 24 May 2018 10:33:00 +0200 Subject: [PATCH] bugfix: generate correct shape when copying initial condition --- bfps/DNS.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bfps/DNS.py b/bfps/DNS.py index 6a815080..2e18b51c 100644 --- a/bfps/DNS.py +++ b/bfps/DNS.py @@ -879,8 +879,8 @@ class DNS(_code): # the case of increasing/decreasing by the same factor in all directions. # in principle we could write something more generic, but i'm not sure # how complicated that would be - dst_shape = (self.parameters['nz'], - self.parameters['ny'], + dst_shape = (self.parameters['ny'], + self.parameters['nz'], (self.parameters['nx']+2) // 2, 3) src_file = h5py.File(src_file_name, 'r') -- GitLab