Merge branch 'release-4-5-patches' into release-4-6
[alexxy/gromacs.git] / src / mdlib / pme.c
index c39c978f605de808143b77c114da2bfe481a333c..8342621cad818ecbe0e5fd396580cdf47e2656fa 100644 (file)
@@ -2974,6 +2974,10 @@ int gmx_pme_init(gmx_pme_t *         pmedata,
 
     if (pme->nnodes == 1)
     {
+#ifdef GMX_MPI
+        pme->mpi_comm_d[0] = MPI_COMM_NULL;
+        pme->mpi_comm_d[1] = MPI_COMM_NULL;
+#endif
         pme->ndecompdim = 0;
         pme->nodeid_major = 0;
         pme->nodeid_minor = 0;