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

This commit is contained in:
sjplimp 2006-12-15 22:10:01 +00:00
parent 45e38df6d3
commit eaddb7a95a
1 changed files with 4 additions and 2 deletions

View File

@ -102,7 +102,8 @@ void Output::setup(int flag)
{
int ntimestep = update->ntimestep;
// perform dump at start of run if last dump was not on this timestep
// perform dump at start of run if current timestep is multiple of every
// and last dump was not on this timestep
// set next_dump to multiple of every
// will not write on last step of run unless multiple of every
// set next_dump_any to smallest next_dump
@ -110,7 +111,8 @@ void Output::setup(int flag)
if (ndump) {
for (int idump = 0; idump < ndump; idump++) {
if (last_dump[idump] != ntimestep) {
if (ntimestep % dump_every[idump] == 0 &&
last_dump[idump] != ntimestep) {
dump[idump]->write();
last_dump[idump] = ntimestep;
}