From f6d6e1ef01d5792bc236a1b2017d90d0da711a17 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 9 Dec 2022 16:23:10 -0500 Subject: [PATCH] remove workaround that is no longer needed --- src/lattice.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lattice.cpp b/src/lattice.cpp index 53f4996581..edb482cfac 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -53,14 +53,7 @@ Lattice::Lattice(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp) if (style == NONE) { if (narg != 2) error->all(FLERR,"Illegal lattice command: expected 2 arguments but found {}", narg); - // Domain creates a default lattice of style "none" - // before Force class is instantiated, just use atof() in that case - - if (force) - xlattice = ylattice = zlattice = utils::numeric(FLERR,arg[1],false,lmp); - else - xlattice = ylattice = zlattice = atof(arg[1]); - + xlattice = ylattice = zlattice = utils::numeric(FLERR,arg[1],false,lmp); if (xlattice <= 0.0) error->all(FLERR, "Invalid lattice none argument: {}", arg[1]); return; }