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

This commit is contained in:
sjplimp
2016-06-08 15:41:04 +00:00
parent fdab2d6cb0
commit 84f65fe441

View File

@ -54,9 +54,8 @@ Lattice::Lattice(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
if (style == NONE) {
if (narg != 2) error->all(FLERR,"Illegal lattice command");
// Domain defines a default lattice of style "none" with
// spacing 1.0 before the force class is initialized, so
// we have to fall back to using atof() in that case.
// Domain creates a default lattice of style "none"
// before Force class is instantiated, just use atof() in that case
if (force)
xlattice = ylattice = zlattice = force->numeric(FLERR,arg[1]);