forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4508 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
321736286a
commit
0f6a4b8ed3
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue