X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fcorrelationfunctions%2Fexpfit.cpp;fp=src%2Fgromacs%2Fcorrelationfunctions%2Fexpfit.cpp;h=aa1404e1842ccfcc10296f2d4ac3e55afe59f96e;hb=c3f2d46e4047f0c465f7234b3784a2fa6f02a065;hp=0cc2c148ca0c4be282309d61af26e755e9966d8f;hpb=0595b4a4c763a0bc574658992081abf8b0abc3fe;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/correlationfunctions/expfit.cpp b/src/gromacs/correlationfunctions/expfit.cpp index 0cc2c148ca..aa1404e184 100644 --- a/src/gromacs/correlationfunctions/expfit.cpp +++ b/src/gromacs/correlationfunctions/expfit.cpp @@ -822,7 +822,7 @@ real do_lmfit(int ndata, real c1[], real sig[], real dt, real x0[], } for (j = 0; (j < nfitpnts); j++) { - real ttt = x0 ? x0[i] : dt*j; + real ttt = x0 ? x0[j] : dt*j; fprintf(fp, "%10.5e %10.5e %10.5e\n", x[j], y[j], lmcurves[eFitFn](ttt, fitparms)); }