git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1183 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -237,9 +237,7 @@ FixAveSpatial::FixAveSpatial(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
nvalid = update->ntimestep;
|
nvalid = update->ntimestep;
|
||||||
else
|
else
|
||||||
nvalid -= (nrepeat-1)*nevery;
|
nvalid -= (nrepeat-1)*nevery;
|
||||||
|
if (nvalid < update->ntimestep) nvalid += nfreq;
|
||||||
if (nvalid < update->ntimestep)
|
|
||||||
error->all("Fix ave/spatial cannot be started on this timestep");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|||||||
@ -196,9 +196,7 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) :
|
|||||||
nvalid = update->ntimestep;
|
nvalid = update->ntimestep;
|
||||||
else
|
else
|
||||||
nvalid -= (nrepeat-1)*nevery;
|
nvalid -= (nrepeat-1)*nevery;
|
||||||
|
if (nvalid < update->ntimestep) nvalid += nfreq;
|
||||||
if (nvalid < update->ntimestep)
|
|
||||||
error->all("Fix ave/time cannot be started on this timestep");
|
|
||||||
|
|
||||||
// must set timestep for all computes that store invocation times
|
// must set timestep for all computes that store invocation times
|
||||||
// since don't know a priori which are invoked by this fix
|
// since don't know a priori which are invoked by this fix
|
||||||
|
|||||||
Reference in New Issue
Block a user