Fixed g_pme_error to use MPI, but not threads.
authorSander Pronk <pronk@cbr.su.se>
Fri, 1 Apr 2011 14:24:00 +0000 (16:24 +0200)
committerSander Pronk <pronk@cbr.su.se>
Fri, 1 Apr 2011 14:24:00 +0000 (16:24 +0200)
This fixes issue #729.

src/tools/gmx_pme_error.c

index 387a764b87448be5976481a299855e03b0d1d204..42763cff53c2759b0b67c6ef695eff2e65a9d94f 100644 (file)
@@ -497,12 +497,12 @@ static real estimate_reciprocal(
         x_per_core = xtot;
     }
 /*     
-#ifdef GMX_MPI
+#ifdef GMX_LIB_MPI
     MPI_Barrier(MPI_COMM_WORLD);
 #endif
 */
 
-#ifdef GMX_MPI
+#ifdef GMX_LIB_MPI
 #ifdef TAKETIME
     if (MASTER(cr))
         t0 = MPI_Wtime();
@@ -728,7 +728,7 @@ static real estimate_reciprocal(
     if (MASTER(cr))
         fprintf(stderr, "\n");
 
-
+#ifdef GMX_LIB_MPI
 #ifdef TAKETIME
     if (MASTER(cr))
     {
@@ -736,6 +736,7 @@ static real estimate_reciprocal(
         fprintf(fp_out, "Recip. err. est. took   : %lf s\n", t1);
     }
 #endif
+#endif
    
 #ifdef DEBUG
     if (PAR(cr))
@@ -1078,7 +1079,7 @@ int gmx_pme_error(int argc,char *argv[])
     
     cr = init_par(&argc,&argv);
     
-#ifdef GMX_MPI
+#ifdef GMX_LIB_MPI
     MPI_Barrier(MPI_COMM_WORLD);
 #endif