Skip to content

Commit

Permalink
TheHortonMachine#36: SMP support and framework (http://github.com/moo…
Browse files Browse the repository at this point in the history
  • Loading branch information
fb71 committed Mar 13, 2017
1 parent 346d02f commit 1d317d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ protected void processGridNodes( GridCoverage2D inElev, Calculator<GridNode> cal
for (int c = 1; c < cols - 1; c++) {
int _c = c, _r = r;
planner.submit( () -> {
if (!pm.isCanceled()) {
if (true /*!pm.isCanceled()*/) {
// GridNode ctor does a lot of calculating -> must be inside the loop
GridNode node = new GridNode( elevationIter, cols, rows, xRes, yRes, _c, _r );
calculator.calculate( node );
pm.worked( 1 );
// pm.worked( 1 );
}
});
}
Expand Down

0 comments on commit 1d317d2

Please sign in to comment.