added missing #ifdef around #include "thread_mpi.h"
authorSzilard Pall <pszilard@cbr.su.se>
Tue, 17 Apr 2012 22:56:56 +0000 (00:56 +0200)
committerSzilard Pall <pszilard@cbr.su.se>
Wed, 18 Apr 2012 00:21:56 +0000 (02:21 +0200)
Due to the the missing #ifdef mdrun was not compiling with compilers
that don't like thread_mpi.h (e.g. Cray compiler).

Change-Id: Ibf980b46aaf56b81fffec5ada7cb3d93492a2220

src/gmxlib/shift_util.c

index 201b432e87a20d0ab4cfd3966f50977cea416573..176077a36e2fd9248bdda4784e2f5e79668cb8e2 100644 (file)
@@ -52,7 +52,9 @@
 #include "pppm.h"
 #include "gmxfio.h"
 
+#ifdef GMX_THREADS
 #include "thread_mpi.h"
+#endif
 
 #define p2(x) ((x)*(x))
 #define p3(x) ((x)*(x)*(x))