Skip to content
Snippets Groups Projects
Commit 25513d71 authored by Matthieu Oberon's avatar Matthieu Oberon
Browse files

fix call of num_threads in src

parent 7629309a
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ void iso_3dfd_it(float *ptr_next, float *ptr_prev, float *ptr_vel, float *co
float *ptr_init_prev = ptr_prev;
float *ptr_init_vel = ptr_vel;
//To avoid the condition in the inner loop, we start at HALF_LENGTH and stop at dim-HALF_LENGTH
#pragma omp parallel for OMP_SCHEDULE num_threads(4) collapse(2) default(shared)
#pragma omp parallel for OMP_SCHEDULE num_threads(num_threads) collapse(2) default(shared)
for(int iz=HALF_LENGTH; iz<n3-HALF_LENGTH; iz++) {
for(int iy=HALF_LENGTH; iy<n2-HALF_LENGTH; iy++) {
#pragma omp simd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment