Changed wall clock time calculation
This commit is contained in:
@@ -36,11 +36,10 @@ double *compute_jacobi(int n, double init_value, double threshold, borders b, in
|
||||
}
|
||||
}
|
||||
/* Iterative refinement of x until values converge */
|
||||
omp_set_num_threads(2);
|
||||
*iterations = 0;
|
||||
do {
|
||||
max_diff = 0;
|
||||
#pragma omp parallel for schedule(static, 20) \
|
||||
#pragma omp parallel for schedule(static) \
|
||||
reduction (max:max_diff) \
|
||||
default(none) private(new_value, j) firstprivate(n, nb) shared(x, new_x)
|
||||
for (i = 1; i <= n; i++) {
|
||||
|
||||
Reference in New Issue
Block a user