Skip to content

Commit

Permalink
solve mutiple definition of omp functions
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Jan 8, 2025
1 parent a749056 commit 33219f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/lib/include/ewald.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#if defined(_OPENMP)
#include <omp.h>
#else
int omp_get_num_threads() { return 1; }
int omp_get_thread_num() { return 0; }
inline int omp_get_num_threads() { return 1; }
inline int omp_get_thread_num() { return 0; }
#endif

#include "region.h"
Expand Down

0 comments on commit 33219f1

Please sign in to comment.