commit 5f9f6f58c3c79b68355a309d33d08aeaa4d6e8f8
parent 3d6d29f5c0aa1a353459007afbc492126ab9e5dd
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 5 Jul 2024 12:13:53 +0200
Correction of sdis_solve_probe_boundary_list function
The calculation does not use the expected number of threads. As a
result, a unexpected thread could access an unallocated rng.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/sdis_solve_probe_boundary_Xd.h b/src/sdis_solve_probe_boundary_Xd.h
@@ -626,6 +626,7 @@ XD(solve_probe_boundary_list)
time_current(&time0);
/* Calculation of probe list */
+ omp_set_num_threads((int)scn->dev->nthreads);
#pragma omp parallel for schedule(static)
for(i = 0; i < (int64_t)process_nprobes; ++i) {
/* Thread */