Merge branch release-5-0
[alexxy/gromacs.git] / src / gromacs / mdlib / coupling.cpp
index 311ead52fe88fa245d78ba1eaf32d7fb601c658e..d0169dcdc28d4af97d65db9e4a2e5d454520ac33 100644 (file)
@@ -757,12 +757,14 @@ void andersen_tcoupl(t_inputrec *ir, gmx_int64_t step,
         }
         if (randomize[gc])
         {
-            if (ir->etc == etcANDERSEN)
+            if (ir->etc == etcANDERSENMASSIVE)
             {
+                /* Randomize particle always */
                 bRandomize = TRUE;
             }
             else
             {
+                /* Randomize particle probabilistically */
                 double uniform[2];
 
                 gmx_rng_cycle_2uniform(step*2, ng, ir->andersen_seed, RND_SEED_ANDERSEN, uniform);