type label for pair e3b oxygen
This commit is contained in:
@ -10,7 +10,7 @@ Syntax
|
||||
|
||||
pair_style e3b Otype
|
||||
|
||||
* Otype = atom type for oxygen
|
||||
* Otype = atom type (numeric or type label) for oxygen
|
||||
|
||||
.. code-block:: LAMMPS
|
||||
|
||||
@ -50,6 +50,9 @@ Examples
|
||||
pair_style hybrid/overlay e3b 1 lj/cut/tip4p/long 1 2 1 1 0.15 8.5
|
||||
pair_coeff * * e3b preset 2011
|
||||
|
||||
labelmap atom 1 C 2 H 3 O 4 N 5 OW 6 HW
|
||||
pair_style e3b OW
|
||||
|
||||
Used in example input script:
|
||||
|
||||
.. parsed-literal::
|
||||
|
||||
@ -373,7 +373,7 @@ void PairE3B::allocateE3B()
|
||||
void PairE3B::settings(int narg, char **arg)
|
||||
{
|
||||
if (narg != 1) error->all(FLERR, "Illegal pair_style command");
|
||||
typeO = utils::inumeric(FLERR, arg[0], false, lmp);
|
||||
typeO = utils::expand_type_int(FLERR, arg[0], Atom::ATOM, lmp);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user