Skip to content

Commit

Permalink
make OpenMP an optional dependency (#1498)
Browse files Browse the repository at this point in the history
Fix #1491.
  • Loading branch information
njzjz committed Feb 23, 2022
1 parent d9a4a86 commit 87b4930
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/lib/include/ewald.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

#include<algorithm>
#include<cassert>
#if defined(_OPENMP)
#include<omp.h>
#else
int omp_get_num_threads() { return 1; }
int omp_get_thread_num() { return 0; }
#endif

#include "utilities.h"
#include "region.h"
Expand Down

0 comments on commit 87b4930

Please sign in to comment.