--- jsr166/src/test/loops/ThreadPhaserJacobi.java 2009/10/29 23:09:08 1.2 +++ jsr166/src/test/loops/ThreadPhaserJacobi.java 2009/11/02 23:55:36 1.5 @@ -1,3 +1,9 @@ +/* + * Written by Doug Lea with assistance from members of JCP JSR-166 + * Expert Group and released to the public domain, as explained at + * http://creativecommons.org/licenses/publicdomain + */ + // Barrier version of Jacobi iteration import java.util.*; @@ -107,7 +113,7 @@ public class ThreadPhaserJacobi { double[][] tmp = a; a = b; b = tmp; } } - catch(Exception ex) { + catch (Exception ex) { ex.printStackTrace(); return; } @@ -157,8 +163,8 @@ public class ThreadPhaserJacobi { int rows = hiRow - loRow + 1; int cols = hiCol - loCol + 1; - int rblocks = (int)(Math.round((float)rows / dimGran)); - int cblocks = (int)(Math.round((float)cols / dimGran)); + int rblocks = Math.round((float)rows / dimGran); + int cblocks = Math.round((float)cols / dimGran); int n = rblocks * cblocks;