Skip to content
Snippets Groups Projects
Commit 11128ec5 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

system partition now pulled from config

parent e81a82d6
No related branches found
No related tags found
1 merge request!101Significant config and output updates
...@@ -417,7 +417,6 @@ final class Transforms { ...@@ -417,7 +417,6 @@ final class Transforms {
private final Site site; private final Site site;
private final Executor ex; private final Executor ex;
private final CalcConfig config; private final CalcConfig config;
private final int size = 20000;
ParallelSystemToCurves( ParallelSystemToCurves(
Site site, Site site,
...@@ -438,7 +437,7 @@ final class Transforms { ...@@ -438,7 +437,7 @@ final class Transforms {
// calculate curves from list in parallel // calculate curves from list in parallel
InputsToCurves inputsToCurves = new InputsToCurves(sources, config); InputsToCurves inputsToCurves = new InputsToCurves(sources, config);
AsyncList<HazardCurves> asyncCurvesList = AsyncList.create(); AsyncList<HazardCurves> asyncCurvesList = AsyncList.create();
for (InputList partition : master.partition(size)) { for (InputList partition : master.partition(config.systemPartition)) {
asyncCurvesList.add(transform( asyncCurvesList.add(transform(
immediateFuture(partition), immediateFuture(partition),
inputsToCurves, inputsToCurves,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment