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

This commit is contained in:
sjplimp
2012-11-26 20:47:19 +00:00
parent e09c64d180
commit 61b0e04dfb
2 changed files with 72 additions and 2 deletions

View File

@ -227,7 +227,7 @@ FixMove::FixMove(LAMMPS *lmp, int narg, char **arg) :
if (mstyle == ROTATE) {
double len = sqrt(axis[0]*axis[0] + axis[1]*axis[1] + axis[2]*axis[2]);
if (len == 0.0)
error->all(FLERR,"Fix move cannot have 0 length rotation vector");
error->all(FLERR,"Zero length rotation vector with fix move");
runit[0] = axis[0]/len;
runit[1] = axis[1]/len;
runit[2] = axis[2]/len;