forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12675 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
dc1b979f4a
commit
fdd3c860d0
|
@ -186,6 +186,8 @@ void CreateAtoms::command(int narg, char **arg)
|
|||
axisone[2] = force->numeric(FLERR,arg[iarg+4]);
|
||||
if (axisone[0] == 0.0 && axisone[1] == 0.0 && axisone[2] == 0.0)
|
||||
error->all(FLERR,"Illegal create_atoms command");
|
||||
if (domain->dimension == 2 && (axisone[0] != 0.0 || axisone[1] != 0.0))
|
||||
error->all(FLERR,"Invalid create_atoms rotation vector for 2d model");
|
||||
MathExtra::norm3(axisone);
|
||||
MathExtra::axisangle_to_quat(axisone,thetaone,quatone);
|
||||
iarg += 5;
|
||||
|
|
Loading…
Reference in New Issue