Skip to content

Commit

Permalink
Merge pull request #195 from hdante/fix-single-thread
Browse files Browse the repository at this point in the history
Fix compilation with OpenMP disabled (single-threaded build)
  • Loading branch information
johannct authored Sep 7, 2024
2 parents ec3d0ea + 4e0d3b9 commit 86fa1da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/onesource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,9 +775,10 @@ void onesource::fitIR(vector<SED *> &fulllibIR,
}
}

// Catch the name of the local thread in the parallelisation
// Catch the name of the local thread in the parallelisation
int thread_id = 0;
#ifdef _OPENMP
int thread_id = omp_get_thread_num();
thread_id = omp_get_thread_num();
#pragma omp for
#endif
// Loop over all SEDs from the library
Expand Down

0 comments on commit 86fa1da

Please sign in to comment.