From 077cf937be71d8b1c7664abb7aa3c875c7fe7b3b Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 23 Oct 2009 15:28:02 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3221 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_heat.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fix_heat.cpp b/src/fix_heat.cpp index e27e14f643..4b5597a0fb 100644 --- a/src/fix_heat.cpp +++ b/src/fix_heat.cpp @@ -43,10 +43,6 @@ FixHeat::FixHeat(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg) heat_input = atof(arg[4]); - // cannot have 0 atoms in group - - if (group->count(igroup) == 0.0) error->all("Fix heat group has no atoms"); - scale = 1.0; } @@ -63,6 +59,9 @@ int FixHeat::setmask() void FixHeat::init() { + // cannot have 0 atoms in group + + if (group->count(igroup) == 0.0) error->all("Fix heat group has no atoms"); masstotal = group->mass(igroup); }