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

This commit is contained in:
sjplimp
2013-05-24 18:55:24 +00:00
parent 3452583172
commit db8eda0253
26 changed files with 24 additions and 99 deletions

View File

@ -51,7 +51,9 @@ Lattice::Lattice(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
else error->all(FLERR,"Illegal lattice command");
if (style == NONE) {
if (narg > 1) error->all(FLERR,"Illegal lattice command");
if (narg != 2) error->all(FLERR,"Illegal lattice command");
xlattice = ylattice = zlattice = atof(arg[1]);
if (xlattice <= 0.0) error->all(FLERR,"Illegal lattice command");
return;
}