Simplified non-overlap condition

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14287 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
athomps
2015-12-05 03:32:34 +00:00
parent 9ae8b64f9a
commit 32acf72146
8 changed files with 8 additions and 8 deletions

View File

@ -248,7 +248,7 @@ FixAveChunk::FixAveChunk(LAMMPS *lmp, int narg, char **arg) :
if (nevery <= 0 || nrepeat <= 0 || nfreq <= 0)
error->all(FLERR,"Illegal fix ave/chunk command");
if (nfreq % nevery || (nrepeat-1)*nevery >= nfreq)
if (nfreq % nevery || nrepeat*nevery > nfreq)
error->all(FLERR,"Illegal fix ave/chunk command");
if (ave != RUNNING && overwrite)
error->all(FLERR,"Illegal fix ave/chunk command");