From de9dfe44d45baf45c32e51220ac3b2a6a13ff65f Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 18 Jan 2011 15:23:32 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5562 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/thermo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/thermo.cpp b/src/thermo.cpp index 1931017099..919ca35d2b 100644 --- a/src/thermo.cpp +++ b/src/thermo.cpp @@ -941,18 +941,19 @@ int Thermo::evaluate_keyword(char *word, double *answer) if (strcmp(word,"step") == 0) { compute_step(); + dvalue = bivalue; } else if (strcmp(word,"elapsed") == 0) { if (update->whichflag == 0) error->all("This variable thermo keyword cannot be used between runs"); compute_elapsed(); - dvalue = ivalue; + dvalue = bivalue; } else if (strcmp(word,"elaplong") == 0) { if (update->whichflag == 0) error->all("This variable thermo keyword cannot be used between runs"); compute_elapsed_long(); - dvalue = ivalue; + dvalue = bivalue; } else if (strcmp(word,"dt") == 0) { compute_dt(); @@ -974,6 +975,7 @@ int Thermo::evaluate_keyword(char *word, double *answer) } else if (strcmp(word,"atoms") == 0) { compute_atoms(); + dvalue = bivalue; } else if (strcmp(word,"temp") == 0) { if (!temperature)