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.3 by dl, Fri Oct 30 14:15:04 2009 UTC vs.
Revision 1.5 by jsr166, Mon Nov 2 23:55:36 2009 UTC

# Line 113 | Line 113 | public class ThreadPhaserJacobi {
113                      double[][] tmp = a; a = b; b = tmp;
114                  }
115              }
116 <            catch(Exception ex) {
116 >            catch (Exception ex) {
117                  ex.printStackTrace();
118                  return;
119              }
# Line 163 | Line 163 | public class ThreadPhaserJacobi {
163  
164              int rows = hiRow - loRow + 1;
165              int cols = hiCol - loCol + 1;
166 <            int rblocks = (int)(Math.round((float)rows / dimGran));
167 <            int cblocks = (int)(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