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.6 by jsr166, Tue Nov 3 01:04:02 2009 UTC vs.
Revision 1.9 by jsr166, Thu Jan 15 18:34:19 2015 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   // Barrier version of Jacobi iteration
# Line 17 | Line 17 | public class ThreadPhaserJacobi {
17      /**
18       * The maximum submatrix length (both row-wise and column-wise)
19       * for any Segment
20 <     **/
21 <
20 >     */
21      static final double EPSILON = 0.0001;  // convergence criterion
22  
23      static int dimGran;
# Line 100 | Line 99 | public class ThreadPhaserJacobi {
99              barrier.register();
100          }
101  
103
102          public void run() {
103              try {
104                  double[][] a = A;
# Line 139 | Line 137 | public class ThreadPhaserJacobi {
137  
138      }
139  
142
140      static class Driver {
141          double[][] A; // matrix to get old values from
142          double[][] B; // matrix to put new values into
# Line 207 | Line 204 | public class ThreadPhaserJacobi {
204              System.out.println("Max diff after " + steps + " steps = " + maxd);
205          }
206      }
210
211
207   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines