cannot currently use replicate command with atom style template

This commit is contained in:
Axel Kohlmeyer
2020-10-28 15:42:50 -04:00
parent c25ef8edb0
commit 9f1526c66d

View File

@ -43,6 +43,9 @@ void Replicate::command(int narg, char **arg)
error->all(FLERR,"Replicate command before simulation box is defined");
if (narg < 3 || narg > 4) error->all(FLERR,"Illegal replicate command");
if (atom->molecular == Atom::TEMPLATE)
error->all(FLERR,"Cannot use replicate command with atom style template");
int me = comm->me;
int nprocs = comm->nprocs;