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

This commit is contained in:
sjplimp 2007-12-05 20:57:47 +00:00
parent 6041bbed96
commit 0bb3fd9b06
5 changed files with 16 additions and 8 deletions

View File

@ -89,7 +89,7 @@ FixAveAtom::FixAveAtom(LAMMPS *lmp, int narg, char **arg) :
nvalid -= (nrepeat-1)*nevery;
if (nvalid < update->ntimestep) nvalid += peratom_freq;
// must set timestep for all computes that store invocation times
// set timestep for all computes that store invocation times
// since don't know a priori which are invoked by this fix
// once in end_of_step() can just set timestep for ones actually invoked

View File

@ -239,7 +239,7 @@ FixAveSpatial::FixAveSpatial(LAMMPS *lmp, int narg, char **arg) :
nvalid -= (nrepeat-1)*nevery;
if (nvalid < update->ntimestep) nvalid += nfreq;
// must set timestep for all computes that store invocation times
// set timestep for all computes that store invocation times
// since don't know a priori which are invoked by this fix
// once in end_of_step() can just set timestep for ones actually invoked

View File

@ -198,7 +198,7 @@ FixAveTime::FixAveTime(LAMMPS *lmp, int narg, char **arg) :
nvalid -= (nrepeat-1)*nevery;
if (nvalid < update->ntimestep) nvalid += nfreq;
// must set timestep for all computes that store invocation times
// set timestep for all computes that store invocation times
// since don't know a priori which are invoked by this fix
// once in end_of_step() can just set timestep for ones actually invoked

View File

@ -164,17 +164,25 @@ void MinCG::run()
// account for early exit from iterate loop due to convergence
// set niter/nsteps for Finish stats to print
// set output->next values to this timestep
// set timestep for all computes that store invocation times
// since don't know a priori which are invoked by thermo and dumps
// call eng_force to insure vflag is set when forces computed
// output->write does final output for thermo, dump, restart files
if (niter < update->nsteps) {
niter++;
update->nsteps = niter;
for (int idump = 0; idump < output->ndump; idump++)
output->next_dump[idump] = update->ntimestep;
output->next_dump_any = update->ntimestep;
if (output->restart_every) output->next_restart = update->ntimestep;
output->next_thermo = update->ntimestep;
for (int i = 0; i < modify->ncompute; i++)
if (modify->compute[i]->timeflag)
modify->compute[i]->add_step(update->ntimestep);
int ntmp;
double *xtmp,*htmp,etmp;
eng_force(&ntmp,&xtmp,&htmp,&etmp);

View File

@ -136,10 +136,10 @@ void Output::setup(int flag)
if (ndump) {
for (int idump = 0; idump < ndump; idump++) {
if (ntimestep % dump_every[idump] == 0 &&
last_dump[idump] != ntimestep) {
if (strcmp(dump[idump]->style,"custom") == 0)
modify->clearstep_compute();
if (ntimestep % dump_every[idump] == 0 &&
last_dump[idump] != ntimestep) {
dump[idump]->write();
last_dump[idump] = ntimestep;
}