Merge release-4-6 into master
[alexxy/gromacs.git] / src / gromacs / mdlib / pme.c
index 8837bb5edad325f5139efcdd5d8ad11b751f7450..e87728e9570dff6fbd52dc9aea4fd9834b0b0a80 100644 (file)
@@ -2973,6 +2973,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;