#include "membed.h"
#include "macros.h"
+#include "gmx_omp.h"
+
#ifdef GMX_LIB_MPI
#include <mpi.h>
#endif
#include "md_openmm.h"
#endif
-#ifdef GMX_OPENMP
-#include <omp.h>
-#endif
-
typedef struct {
gmx_integrator_t *func;
{
cpu_set_t mask;
CPU_ZERO(&mask);
- core+=omp_get_thread_num();
+ core+=gmx_omp_get_thread_num();
CPU_SET(core,&mask);
sched_setaffinity((pid_t) syscall (SYS_gettid),sizeof(cpu_set_t),&mask);
}