ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/ThreadPhaserJacobi.java
(Generate patch)

Comparing jsr166/src/test/loops/ThreadPhaserJacobi.java (file contents):
Revision 1.5 by jsr166, Mon Nov 2 23:55:36 2009 UTC vs.
Revision 1.6 by jsr166, Tue Nov 3 01:04:02 2009 UTC

# Line 39 | Line 39 | public class ThreadPhaserJacobi {
39          }
40  
41          int granularity = n * n / nprocs;
42 <        dimGran = (int)(Math.sqrt(granularity));
42 >        dimGran = (int) Math.sqrt(granularity);
43  
44          // allocate enough space for edges
45          int dim = n+2;
# Line 67 | Line 67 | public class ThreadPhaserJacobi {
67              driver.compute();
68  
69              long time = System.currentTimeMillis() - startTime;
70 <            double secs = ((double)time) / 1000.0;
70 >            double secs = (double) time / 1000.0;
71  
72              System.out.println("Compute Time: " + secs);
73          }
# Line 163 | Line 163 | public class ThreadPhaserJacobi {
163  
164              int rows = hiRow - loRow + 1;
165              int cols = hiCol - loCol + 1;
166 <            int rblocks = Math.round((float)rows / dimGran);
167 <            int cblocks = Math.round((float)cols / dimGran);
166 >            int rblocks = Math.round((float) rows / dimGran);
167 >            int cblocks = Math.round((float) cols / dimGran);
168  
169              int n = rblocks * cblocks;
170  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines