document restriction for molecule sets. improve warning message.
This commit is contained in:
@ -536,6 +536,11 @@ command.
|
|||||||
A rotation vector specified for a single molecule must be in
|
A rotation vector specified for a single molecule must be in
|
||||||
the z-direction for a 2d model.
|
the z-direction for a 2d model.
|
||||||
|
|
||||||
|
For :doc:`molecule templates <molecule>` that are created from multiple
|
||||||
|
files, i.e. contain multiple molecule *sets*, only the first set is
|
||||||
|
used. To create multiple molecules the files currently need to be
|
||||||
|
merged and different molecule IDs assigned with a Molecules section.
|
||||||
|
|
||||||
Related commands
|
Related commands
|
||||||
""""""""""""""""
|
""""""""""""""""
|
||||||
|
|
||||||
|
|||||||
@ -179,7 +179,8 @@ void CreateAtoms::command(int narg, char **arg)
|
|||||||
if (imol == -1)
|
if (imol == -1)
|
||||||
error->all(FLERR, "Molecule template ID {} for create_atoms does not exist", arg[iarg + 1]);
|
error->all(FLERR, "Molecule template ID {} for create_atoms does not exist", arg[iarg + 1]);
|
||||||
if ((atom->molecules[imol]->nset > 1) && (comm->me == 0))
|
if ((atom->molecules[imol]->nset > 1) && (comm->me == 0))
|
||||||
error->warning(FLERR, "Molecule template for create_atoms has multiple molecules");
|
error->warning(FLERR, "Molecule template for create_atoms has multiple molecule sets. "
|
||||||
|
"Only the first set will be used.");
|
||||||
mode = MOLECULE;
|
mode = MOLECULE;
|
||||||
onemol = atom->molecules[imol];
|
onemol = atom->molecules[imol];
|
||||||
molseed = utils::inumeric(FLERR, arg[iarg + 2], false, lmp);
|
molseed = utils::inumeric(FLERR, arg[iarg + 2], false, lmp);
|
||||||
|
|||||||
Reference in New Issue
Block a user