47 |
|
return; |
48 |
|
} |
49 |
|
|
50 |
< |
ForkJoinPool g = procs == 0? new ForkJoinPool() : |
50 |
> |
ForkJoinPool g = (procs == 0) ? new ForkJoinPool() : |
51 |
|
new ForkJoinPool(procs); |
52 |
|
|
53 |
|
System.out.print("parallelism = " + g.getParallelism()); |
150 |
|
} |
151 |
|
|
152 |
|
|
153 |
< |
/** Update all cells **/ |
153 |
> |
/** Updates all cells. */ |
154 |
|
final void compstripe(double[][] newMat, double[][] oldMat) { |
155 |
|
|
156 |
|
// manually mangled to reduce array indexing |
213 |
|
} |
214 |
|
|
215 |
|
|
216 |
< |
/** Initialize all cells **/ |
216 |
> |
/** Initializes all cells. */ |
217 |
|
final void init() { |
218 |
|
final int llb = (lb == 0) ? 1 : lb; |
219 |
|
final int lub = (ub == nx) ? nx - 1 : ub; |
232 |
|
|
233 |
|
} |
234 |
|
|
235 |
< |
/** Fill in edges with boundary values **/ |
235 |
> |
/** Fills in edges with boundary values. */ |
236 |
|
final void edges(double [][] m, int llb, int lub, double t) { |
237 |
|
|
238 |
|
for (int a = llb; a < lub; a++) { |