From 5477469d504997da61d3e1da779bb7ffcd019191 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Thu, 21 Mar 2019 15:18:23 +0000 Subject: add value to allocate pars --- Wrappers/Python/ccpi/framework/BlockGeometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Wrappers/Python') 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) -- cgit v1.2.3