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

This commit is contained in:
sjplimp 2007-11-28 14:50:55 +00:00
parent 370c6ad8a2
commit 232a13922b
2 changed files with 2 additions and 6 deletions

View File

@ -237,9 +237,7 @@ FixAveSpatial::FixAveSpatial(LAMMPS *lmp, int narg, char **arg) :
nvalid = update->ntimestep;
else
nvalid -= (nrepeat-1)*nevery;
if (nvalid < update->ntimestep)
error->all("Fix ave/spatial cannot be started on this timestep");
if (nvalid < update->ntimestep) nvalid += nfreq;
}
/* ---------------------------------------------------------------------- */

View File

@ -196,9 +196,7 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) :
nvalid = update->ntimestep;
else
nvalid -= (nrepeat-1)*nevery;
if (nvalid < update->ntimestep)
error->all("Fix ave/time cannot be started on this timestep");
if (nvalid < update->ntimestep) nvalid += nfreq;
// must set timestep for all computes that store invocation times
// since don't know a priori which are invoked by this fix