git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8000 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -131,21 +131,24 @@ void FixSetForce::init()
|
|||||||
|
|
||||||
if (xstr) {
|
if (xstr) {
|
||||||
xvar = input->variable->find(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;
|
if (input->variable->equalstyle(xvar)) xstyle = EQUAL;
|
||||||
else if (input->variable->atomstyle(xvar)) xstyle = ATOM;
|
else if (input->variable->atomstyle(xvar)) xstyle = ATOM;
|
||||||
else error->all(FLERR,"Variable for fix setforce is invalid style");
|
else error->all(FLERR,"Variable for fix setforce is invalid style");
|
||||||
}
|
}
|
||||||
if (ystr) {
|
if (ystr) {
|
||||||
yvar = input->variable->find(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;
|
if (input->variable->equalstyle(yvar)) ystyle = EQUAL;
|
||||||
else if (input->variable->atomstyle(yvar)) ystyle = ATOM;
|
else if (input->variable->atomstyle(yvar)) ystyle = ATOM;
|
||||||
else error->all(FLERR,"Variable for fix setforce is invalid style");
|
else error->all(FLERR,"Variable for fix setforce is invalid style");
|
||||||
}
|
}
|
||||||
if (zstr) {
|
if (zstr) {
|
||||||
zvar = input->variable->find(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;
|
if (input->variable->equalstyle(zvar)) zstyle = EQUAL;
|
||||||
else if (input->variable->atomstyle(zvar)) zstyle = ATOM;
|
else if (input->variable->atomstyle(zvar)) zstyle = ATOM;
|
||||||
else error->all(FLERR,"Variable for fix setforce is invalid style");
|
else error->all(FLERR,"Variable for fix setforce is invalid style");
|
||||||
@ -155,7 +158,8 @@ void FixSetForce::init()
|
|||||||
|
|
||||||
if (iregion >= 0) {
|
if (iregion >= 0) {
|
||||||
iregion = domain->find_region(idregion);
|
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)
|
if (xstyle == ATOM || ystyle == ATOM || zstyle == ATOM)
|
||||||
|
|||||||
Reference in New Issue
Block a user