Skip to content

Commit 8ea909c

Browse files
committed
Missed a openmp call.
1 parent a9fb04b commit 8ea909c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/mGEMS_alignment.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ class Alignment {
192192
#pragma omp parallel
193193
{
194194
size_t i = 0;
195-
size_t thread_id = omp_get_thread_num();
195+
size_t thread_id = 0;
196+
#if defined(MGEMS_OPENMP_SUPPORT) && (MGEMS_OPENMP_SUPPORT) == 1
197+
thread_id = omp_get_thread_num();
198+
#endif
196199
collapsed_bits[thread_id].resize(n_ecs*this->n_targets);
197200
for(auto element = map.begin(); element !=map.end(); ++element, i++) {
198201
if(i%n_threads == thread_id) {

0 commit comments

Comments
 (0)