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