From c62ddaa4a246200c26e7bca52fbf834be1b0d7a4 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 23 Oct 2020 21:10:41 -0400 Subject: [PATCH] remove pre-box check so that atom style template can work --- doc/src/molecule.rst | 4 +--- src/molecule.cpp | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/doc/src/molecule.rst b/doc/src/molecule.rst index a6bd192aba..dd6a1aa49f 100644 --- a/doc/src/molecule.rst +++ b/doc/src/molecule.rst @@ -484,9 +484,7 @@ of SHAKE clusters. Restrictions """""""""""" -This command must come after the simulation box is define by a -:doc:`read_data `, :doc:`read_restart `, or -:doc:`create_box ` command. +None Related commands """""""""""""""" diff --git a/src/molecule.cpp b/src/molecule.cpp index b4f16525e9..f48eb7f44c 100644 --- a/src/molecule.cpp +++ b/src/molecule.cpp @@ -55,9 +55,6 @@ Molecule::Molecule(LAMMPS *lmp, int narg, char **arg, int &index) : if (index >= narg) error->all(FLERR,"Illegal molecule command"); - if (domain->box_exist == 0) - error->all(FLERR,"Molecule command before simulation box is defined"); - int n = strlen(arg[0]) + 1; id = new char[n]; strcpy(id,arg[0]);