mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1183 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
370c6ad8a2
commit
232a13922b
|
@ -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;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue