Fixes recently introduced bug in gmx analyze.
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Fri, 28 Nov 2014 06:40:42 +0000 (08:40 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 28 Nov 2014 09:10:49 +0000 (10:10 +0100)
Since the introduction of a separate module for autocorrelation
and related algorithms the program gmx analyze did not work anymore
due to a typo introduced, such that the acf related command line
arguments were not properly added to the others.

Change-Id: If79adc761de397e42c387d1aa6bd53d565b02820

src/gromacs/correlationfunctions/autocorr.c

index 159790811f1e4113f458472198eebac5a3579581..d2df85a3913641a3d29766de8e81acf0da12e6ba 100644 (file)
@@ -748,7 +748,7 @@ t_pargs *add_acf_pargs(int *npargs, t_pargs *pa)
     t_pargs *ppa;
     int      i, npa;
 
-    npa = asize(pa);
+    npa = asize(acfpa);
     snew(ppa, *npargs+npa);
     for (i = 0; (i < *npargs); i++)
     {