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 |
5 |
+ |
*/ |
6 |
+ |
|
7 |
|
// Barrier version of Jacobi iteration |
8 |
|
|
9 |
|
import java.util.*; |
113 |
|
double[][] tmp = a; a = b; b = tmp; |
114 |
|
} |
115 |
|
} |
116 |
< |
catch(Exception ex) { |
116 |
> |
catch (Exception ex) { |
117 |
|
ex.printStackTrace(); |
118 |
|
return; |
119 |
|
} |
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 |
|
|