Skip to content
Snippets Groups Projects
Commit acd20512 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

require that box is defined before molecule command is issued

parent 5fcdfe6d
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,9 @@ 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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment