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

This commit is contained in:
sjplimp
2009-10-23 15:28:02 +00:00
parent a10fa06b01
commit 077cf937be

View File

@ -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);
}