Changed wall clock time calculation

This commit is contained in:
Fabio Salvini
2016-12-01 19:44:37 +01:00
parent 060ab4483e
commit ec073db31d
4 changed files with 17 additions and 15 deletions

View File

@@ -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++) {