diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-03-21 15:18:23 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-03-21 15:18:23 +0000 |
commit | 5477469d504997da61d3e1da779bb7ffcd019191 (patch) | |
tree | 8b7eecf76eacc6a0d6f09812c949668d6da4ed9f | |
parent | 1b34498aaa93b95925991258fe542b62a9155aff (diff) | |
download | framework-5477469d504997da61d3e1da779bb7ffcd019191.tar.gz framework-5477469d504997da61d3e1da779bb7ffcd019191.tar.bz2 framework-5477469d504997da61d3e1da779bb7ffcd019191.tar.xz framework-5477469d504997da61d3e1da779bb7ffcd019191.zip |
add value to allocate pars
-rwxr-xr-x | Wrappers/Python/ccpi/framework/BlockGeometry.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/framework/BlockGeometry.py b/Wrappers/Python/ccpi/framework/BlockGeometry.py index 87dfe92..632d320 100755 --- a/Wrappers/Python/ccpi/framework/BlockGeometry.py +++ b/Wrappers/Python/ccpi/framework/BlockGeometry.py @@ -28,7 +28,7 @@ class BlockGeometry(object): 'Dimension and size do not match: expected {} got {}'
.format(n_elements, len(args)))
- def allocate(self):
- containers = [geom.allocate() for geom in self.geometries]
+ def allocate(self, value=0):
+ containers = [geom.allocate(value) for geom in self.geometries]
BlockDataContainer(*containers)
|