summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-09-11 09:54:10 +0200
committerAnton Khirnov <anton@khirnov.net>2014-09-11 09:54:10 +0200
commit29c77daa37ee7d3d6b64fcae248c099ce8a53f7f (patch)
treeb90e16547b5d8afc937af4f951e1e936dba70038
parent29d6a4cd109ef585cd862ac3dc83080e1af0b51e (diff)
Parallelize the initial data construction.
-rw-r--r--src/brill.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/brill.c b/src/brill.c
index 6d5d7a1..73b4cc6 100644
--- a/src/brill.c
+++ b/src/brill.c
@@ -287,6 +287,7 @@ void brill_data(CCTK_ARGUMENTS)
basis_val_r[(j * cctk_lsh[0] + i) * bd->nb_coeffs_x + k] = bd->basis->eval(r, k);
}
+#pragma omp parallel for
for (int k = 0; k < cctk_lsh[2]; k++)
for (int j = 0; j < cctk_lsh[1]; j++)
for (int i = 0; i < cctk_lsh[0]; i++) {