--- jsr166/src/test/loops/FJPhaserJacobi.java 2009/11/02 23:55:36 1.5 +++ jsr166/src/test/loops/FJPhaserJacobi.java 2009/11/03 01:04:02 1.6 @@ -32,7 +32,7 @@ public class FJPhaserJacobi { ForkJoinPool fjp = new ForkJoinPool(); int granularity = n * n / fjp.getParallelism(); - dimGran = (int)(Math.sqrt(granularity)); + dimGran = (int) Math.sqrt(granularity); // allocate enough space for edges int dim = n+2; @@ -59,7 +59,7 @@ public class FJPhaserJacobi { fjp.invoke(driver); long time = System.currentTimeMillis() - startTime; - double secs = ((double)time) / 1000.0; + double secs = (double) time / 1000.0; System.out.println("Compute Time: " + secs); System.out.println(fjp); @@ -143,8 +143,8 @@ public class FJPhaserJacobi { public void compute() { int rows = hiRow - loRow + 1; int cols = hiCol - loCol + 1; - int rblocks = Math.round((float)rows / dimGran); - int cblocks = Math.round((float)cols / dimGran); + int rblocks = Math.round((float) rows / dimGran); + int cblocks = Math.round((float) cols / dimGran); int n = rblocks * cblocks;