From b573d06c3f90b6319f6d0aa3c9f523bf393dca66 Mon Sep 17 00:00:00 2001 From: Tias Maiti Date: Mon, 18 Aug 2014 21:32:53 +0000 Subject: [PATCH] fixed bug where initial microstructure array was allocated (factor 2) too large in anticipation of later 2D tiling. --- processing/pre/geom_grainGrowth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/pre/geom_grainGrowth.py b/processing/pre/geom_grainGrowth.py index 86501dead..57c5131b0 100755 --- a/processing/pre/geom_grainGrowth.py +++ b/processing/pre/geom_grainGrowth.py @@ -124,7 +124,7 @@ for file in files: continue #--- read data ------------------------------------------------------------------------------------ - microstructure = np.zeros(np.prod([2 if i == 1 else i for i in info['grid']]),'i') # 2D structures do not work + microstructure = np.zeros(np.prod(info['grid']),'i') # 2D structures do not work i = 0 while theTable.data_read(): # read next data line of ASCII table