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

This commit is contained in:
sjplimp
2009-04-10 23:20:41 +00:00
parent 0d29a6db12
commit 721d689f93
4 changed files with 11 additions and 1 deletions

View File

@ -363,6 +363,12 @@ void Output::create_thermo(int narg, char **arg)
if (domain->box_exist == 0)
error->all("Thermo_style command before simulation box is defined");
// warn if previous thermo had been modified via thermo_modify command
if (thermo->modified && comm->me == 0)
error->warning("New thermo_style command, "
"previous thermo_modify settings will be lost");
// set thermo = NULL in case new Thermo throws an error
delete thermo;