Merge release-4-6 into release-5-0
[alexxy/gromacs.git] / src / gromacs / pulling / pull.c
index a4500a4d4e24a749eb2ae0e9a0509245787190b5..64bdbfd3a5b3c96264a23a1a43b3b17a9cfb220b 100644 (file)
@@ -629,6 +629,7 @@ static void do_constraint(t_pull *pull, t_pbc *pbc,
         for (c = 0; c < pull->ncoord; c++)
         {
             pcrd = &pull->coord[c];
+            ref  = pcrd->init + pcrd->rate*t;
 
             low_get_pull_coord_dr(pull, pcrd, pbc, t,
                                   rnew[pcrd->group[1]],