From 1d317d25f562ee951203635985981e114b53a564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Falko=20Br=C3=A4utigam?= Date: Mon, 13 Mar 2017 18:06:16 +0100 Subject: [PATCH] #36: SMP support and framework (http://github.com/moovida/jgrasstools/issues/36) --- .../gears/libs/modules/GridNodeMultiProcessing.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jgrassgears/src/main/java/org/jgrasstools/gears/libs/modules/GridNodeMultiProcessing.java b/jgrassgears/src/main/java/org/jgrasstools/gears/libs/modules/GridNodeMultiProcessing.java index e7fa41aac..47fb56b6d 100644 --- a/jgrassgears/src/main/java/org/jgrasstools/gears/libs/modules/GridNodeMultiProcessing.java +++ b/jgrassgears/src/main/java/org/jgrasstools/gears/libs/modules/GridNodeMultiProcessing.java @@ -68,11 +68,11 @@ protected void processGridNodes( GridCoverage2D inElev, Calculator 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 ); } }); }