Skip to content

Commit

Permalink
Fix compiling without openmp.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaklin committed Aug 20, 2024
1 parent 4e28bc4 commit 1ae8a17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/Likelihood.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ class LL_WOR21 : public Likelihood<T> {
for (size_t i = 0; i < num_ecs; ++i) {
for (size_t j = 0; j < n_targets; ++j) {
if (alignment(i, j)) {
#if defined(MSWEEP_OPENMP_SUPPORT) && (MSWEEP_OPENMP_SUPPORT) == 1
local_counts[omp_get_thread_num()].inc((size_t)((size_t)alignment.get_groups()[j]*num_ecs) + i);
#else
local_counts[0].inc((size_t)((size_t)alignment.get_groups()[j]*num_ecs) + i);
#endif
}
}
}
Expand Down

0 comments on commit 1ae8a17

Please sign in to comment.