From fa2c100d6a5c0b71d1b286e185c9eef6b79da401 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 4 Sep 2019 20:20:55 -0700 Subject: [PATCH] need to update microstructure to get grid update --- python/damask/geom.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/damask/geom.py b/python/damask/geom.py index 945ec3e1b..176d2bd12 100644 --- a/python/damask/geom.py +++ b/python/damask/geom.py @@ -73,14 +73,15 @@ class Geom(): if size is not None and rescale: raise ValueError('Either set size explicitly or rescale automatically') - elif size is not None: + + self.set_microstructure(microstructure) + self.set_origin(origin) + + if size is not None: self.set_size(size) elif rescale: self.set_size(self.get_grid()/grid_old*self.size) - self.set_microstructure(microstructure) - self.set_origin(origin) - message = ['grid a b c: {}'.format(' x '.join(map(str,grid_old)))] if np.any(grid_old != self.get_grid()): message[-1] = util.delete(message[-1])