correct rescaling

This commit is contained in:
Martin Diehl 2019-05-29 19:36:02 +02:00
parent d7e8a66746
commit 6e790e845a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class Geom():
raise ValueError('Either set size explicitly or rescale automatically')
self.set_microstructure(microstructure)
self.set_size(self.get_grid()/grid_old if rescale else size)
self.set_size(self.get_grid()/grid_old*self.size if rescale else size)
self.set_origin(origin)
message = ['grid a b c: {}'.format(' x '.join(map(str,grid_old)))]