Merge branch 'master' into reconnection

This commit is contained in:
Grzegorz Kowal 2020-07-15 12:41:21 -03:00
commit 025ba09451

@ -187,10 +187,10 @@ class AmunXML:
if nd == 3:
nz = self.attributes['zblocks']
rm = np.array([nx, ny, nz])
rm = np.array([nz, ny, nx])
bm = np.array([nc, nc, nc])
else:
rm = np.array([nx, ny])
rm = np.array([ny, nx])
bm = np.array([nc, nc])
dfile = op.join(self.path, 'metablock_fields.bin')
@ -214,7 +214,7 @@ class AmunXML:
coord[mset[0,n]] = mset[2:5,n]
ml = mset[1,:].max()
dm = rm[0:nd] * int(nc * 2**(ml - 1) / self.shrink)
dm = rm * int(nc * 2**(ml - 1) / self.shrink)
arr = np.zeros(dm[:])
for n in range(self.attributes['nprocs']):