Added new keywords orientation rx ry rz to restrict random rotation

This commit is contained in:
Tongtong Shen
2019-09-24 15:10:47 -04:00
parent 25c3a452f2
commit ff991c4c53

View File

@ -11,10 +11,10 @@
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "fix_deposit.h"
#include <mpi.h>
#include <cmath>
#include <cstring>
#include "atom.h"
#include "atom_vec.h"
#include "molecule.h"
@ -776,7 +776,7 @@ void FixDeposit::options(int narg, char **arg)
vzlo = force->numeric(FLERR,arg[iarg+1]);
vzhi = force->numeric(FLERR,arg[iarg+2]);
iarg += 3;
} else if (strcmp(arg[iarg],"rotation") == 0) {
} else if (strcmp(arg[iarg],"orientation") == 0) {
if (iarg+4 > narg) error->all(FLERR,"Illegal fix deposit command");
rflag = 1;
rx = force->numeric(FLERR,arg[iarg+1]);