Change-Id: If40506b521a4b4690506465a3f421dab93bc9ce6
#include "vsite.h"
#include "genborn.h"
-#ifdef GMX_LIB_MPI
-#include <mpi.h>
-#endif
-#ifdef GMX_THREADS
-#include "tmpi.h"
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
#include "typedefs.h"
-#ifdef GMX_LIB_MPI
-#include <mpi.h>
-#endif
-#ifdef GMX_THREADS
-#include "tmpi.h"
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
#include "pull.h"
#include "update.h"
+
+#ifdef GMX_THREADS
+#include "thread_mpi/threads.h"
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
#include <mpi.h>
#else
#ifdef GMX_THREADS
-#include "../tmpi.h"
+#include "../thread_mpi/tmpi.h"
+#include "../thread_mpi/mpi_bindings.h"
#else
typedef void* MPI_Comm;
typedef void* MPI_Request;
#include "gmxfio.h"
#ifdef GMX_THREADS
-#include "thread_mpi.h"
+#include "thread_mpi/threads.h"
#endif
#define p2(x) ((x)*(x))
#define FFTWPREFIX(name) fftwf_ ## name
#endif
+#ifdef GMX_THREADS
+#include "thread_mpi/threads.h"
+#endif
#ifdef GMX_THREADS