renamed GMX_THREADS to GMX_THREAD_MPI
[alexxy/gromacs.git] / src / gmxlib / typedefs.c
index 15fcbdc8ecb4cf02c7577b1cc101cff6a66ca80c..96a6ccf32aa3557dc37c198b7d4e8c083a9f9164 100644 (file)
@@ -44,7 +44,7 @@
 #include "pbc.h"
 #include <string.h>
 
-#ifdef GMX_THREADS
+#ifdef GMX_THREAD_MPI
 #include "thread_mpi.h"
 #endif
 
 
 
 static gmx_bool bOverAllocDD=FALSE;
-#ifdef GMX_THREADS
+#ifdef GMX_THREAD_MPI
 static tMPI_Thread_mutex_t over_alloc_mutex=TMPI_THREAD_MUTEX_INITIALIZER;
 #endif
 
 
 void set_over_alloc_dd(gmx_bool set)
 {
-#ifdef GMX_THREADS
+#ifdef GMX_THREAD_MPI
     tMPI_Thread_mutex_lock(&over_alloc_mutex);
     /* we just make sure that we don't set this at the same time. 
        We don't worry too much about reading this rarely-set variable */
 #endif    
     bOverAllocDD = set;
-#ifdef GMX_THREADS
+#ifdef GMX_THREAD_MPI
     tMPI_Thread_mutex_unlock(&over_alloc_mutex);
 #endif    
 }