Skip to content

Commit

Permalink
Missed a openmp call.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaklin committed Aug 20, 2024
1 parent a9fb04b commit 8ea909c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/mGEMS_alignment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ class Alignment {
#pragma omp parallel
{
size_t i = 0;
size_t thread_id = omp_get_thread_num();
size_t thread_id = 0;
#if defined(MGEMS_OPENMP_SUPPORT) && (MGEMS_OPENMP_SUPPORT) == 1
thread_id = omp_get_thread_num();
#endif
collapsed_bits[thread_id].resize(n_ecs*this->n_targets);
for(auto element = map.begin(); element !=map.end(); ++element, i++) {
if(i%n_threads == thread_id) {
Expand Down

0 comments on commit 8ea909c

Please sign in to comment.