From 851186644d0f1c12106946e2c6e32d34d102a06f Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 5 Jun 2012 17:41:02 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8223 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_heat.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/fix_heat.cpp b/src/fix_heat.cpp index 645390180c..275b306eb0 100644 --- a/src/fix_heat.cpp +++ b/src/fix_heat.cpp @@ -55,7 +55,8 @@ FixHeat::FixHeat(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg) if (strcmp(arg[iarg],"region") == 0) { if (iarg+2 > narg) error->all(FLERR,"Illegal fix heat command"); iregion = domain->find_region(arg[iarg+1]); - if (iregion == -1) error->all(FLERR,"Region ID for fix heat does not exist"); + if (iregion == -1) + error->all(FLERR,"Region ID for fix heat does not exist"); int n = strlen(arg[iarg+1]) + 1; idregion = new char[n]; strcpy(idregion,arg[iarg+1]); @@ -90,12 +91,14 @@ void FixHeat::init() if (iregion >= 0) { iregion = domain->find_region(idregion); - if (iregion == -1) error->all(FLERR,"Region ID for fix heat does not exist"); + if (iregion == -1) + error->all(FLERR,"Region ID for fix heat does not exist"); } // cannot have 0 atoms in group - if (group->count(igroup) == 0) error->all(FLERR,"Fix heat group has no atoms"); + if (group->count(igroup) == 0) + error->all(FLERR,"Fix heat group has no atoms"); masstotal = group->mass(igroup); }