Commit b39cab08 authored by Stefan's avatar Stefan
Browse files

Added new blocking scheme "split"

parent 9123db70
...@@ -2040,6 +2040,8 @@ class Ptychography(Problem): ...@@ -2040,6 +2040,8 @@ class Ptychography(Problem):
placed[p] = True; placed[p] = True;
elif blocking_scheme == 'distribute': elif blocking_scheme == 'distribute':
in_block = numpy.arange(N_pie) % (rows*cols); in_block = numpy.arange(N_pie) % (rows*cols);
elif blocking_scheme == 'split':
in_block = numpy.arange(N_pie) // (N_pie//(rows*cols));
else: else:
raise NotImplementedError('NYI') raise NotImplementedError('NYI')
self.config['in_block'] = in_block; self.config['in_block'] = in_block;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment