git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4508 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2010-08-19 16:04:58 +00:00
parent 321736286a
commit 0f6a4b8ed3
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ FixAveCorrelate::FixAveCorrelate(LAMMPS * lmp, int narg, char **arg):
if (nevery <= 0 || nrepeat <= 0 || nfreq <= 0)
error->all("Illegal fix ave/correlate command");
if (nfreq % nevery || (nrepeat-1)*nevery > nfreq)
if (nfreq % nevery)
error->all("Illegal fix ave/correlate command");
if (ave == ONE && nfreq < (nrepeat-1)*nevery)
error->all("Illegal fix ave/correlate command");
for (int i = 0; i < nvalues; i++) {