Commit eaddb7a9 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@196 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 45e38df6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;
      }