Merge branch 'origin/release-5-1'
[alexxy/gromacs.git] / src / gromacs / mdlib / mdrun_signalling.cpp
index 3ebb5b305087f08f6e85645dd98c7d0a2a76b9c2..ab374636db38918f7fec07607329b4289be5296a 100644 (file)
@@ -124,7 +124,7 @@ handleSignals(struct gmx_signalling_t  *gs,
             gmx_sum_sim(eglsNR, gs->mpiBuffer, cr->ms);
         }
         /* Communicate the signals from the master to the others */
-        gmx_bcast(eglsNR*sizeof(gs->mpiBuffer), gs->mpiBuffer, cr);
+        gmx_bcast(eglsNR*sizeof(gs->mpiBuffer[0]), gs->mpiBuffer, cr);
     }
     for (int i = 0; i < eglsNR; i++)
     {