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

This commit is contained in:
sjplimp
2010-08-17 00:10:49 +00:00
parent 1c1eeab7ad
commit 5f7dc817df

View File

@ -296,12 +296,12 @@ void Output::write(int ntimestep)
thermo->compute(1);
last_thermo = ntimestep;
if (thermo_every) next_thermo += thermo_every;
else {
else if (var_thermo) {
next_thermo = static_cast<int>
(input->variable->compute_equal(ivar_thermo));
if (next_thermo <= ntimestep)
error->all("Thermo every variable returned a bad timestep");
}
} else next_thermo = update->laststep;
next_thermo = MYMIN(next_thermo,update->laststep);
modify->addstep_compute(next_thermo);
}