From ad93e73239082905a89d924905ce87230c443eaa Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 30 Jun 2009 14:43:45 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2910 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output.cpp b/src/output.cpp index 0c16742a96..a27518a5fb 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -139,8 +139,8 @@ void Output::setup(int flag) for (int idump = 0; idump < ndump; idump++) { if (strcmp(dump[idump]->style,"custom") == 0) modify->clearstep_compute(); - if (ntimestep % dump_every[idump] == 0 && - last_dump[idump] != ntimestep) { + if ((ntimestep % dump_every[idump] == 0 && + last_dump[idump] != ntimestep) || last_dump[idump] < 0) { dump[idump]->write(); last_dump[idump] = ntimestep; }