From 2506f714691cf2d837ac8f96483b613f5356b557 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 29 Mar 2012 23:37:56 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8000 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_setforce.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/fix_setforce.cpp b/src/fix_setforce.cpp index 78f438fff3..ee843fbbce 100644 --- a/src/fix_setforce.cpp +++ b/src/fix_setforce.cpp @@ -131,21 +131,24 @@ void FixSetForce::init() if (xstr) { xvar = input->variable->find(xstr); - if (xvar < 0) error->all(FLERR,"Variable name for fix setforce does not exist"); + if (xvar < 0) + error->all(FLERR,"Variable name for fix setforce does not exist"); if (input->variable->equalstyle(xvar)) xstyle = EQUAL; else if (input->variable->atomstyle(xvar)) xstyle = ATOM; else error->all(FLERR,"Variable for fix setforce is invalid style"); } if (ystr) { yvar = input->variable->find(ystr); - if (yvar < 0) error->all(FLERR,"Variable name for fix setforce does not exist"); + if (yvar < 0) + error->all(FLERR,"Variable name for fix setforce does not exist"); if (input->variable->equalstyle(yvar)) ystyle = EQUAL; else if (input->variable->atomstyle(yvar)) ystyle = ATOM; else error->all(FLERR,"Variable for fix setforce is invalid style"); } if (zstr) { zvar = input->variable->find(zstr); - if (zvar < 0) error->all(FLERR,"Variable name for fix setforce does not exist"); + if (zvar < 0) + error->all(FLERR,"Variable name for fix setforce does not exist"); if (input->variable->equalstyle(zvar)) zstyle = EQUAL; else if (input->variable->atomstyle(zvar)) zstyle = ATOM; else error->all(FLERR,"Variable for fix setforce is invalid style"); @@ -155,7 +158,8 @@ void FixSetForce::init() if (iregion >= 0) { iregion = domain->find_region(idregion); - if (iregion == -1) error->all(FLERR,"Region ID for fix setforce does not exist"); + if (iregion == -1) + error->all(FLERR,"Region ID for fix setforce does not exist"); } if (xstyle == ATOM || ystyle == ATOM || zstyle == ATOM)