typo in doucmentation on compute bond/local

Hi,

Looks like there is a typo in the documentation on compute bond/local, which lists “engpot” as an accepted value, while the source code compute_bond_local.cpp (line 53 in the 30Jul2016 version) reads

strcmp(arg[iarg],“eng”) == 0

instead, resulting into

ERROR: Invalid keyword in compute bond/local command

Regards.
Harsh

Hi,

Looks like there is a typo in the documentation on compute bond/local, which
lists "engpot" as an accepted value, while the source code
compute_bond_local.cpp (line 53 in the 30Jul2016 version) reads

strcmp(arg[iarg],"eng") == 0

instead, resulting into

ERROR: Invalid keyword in compute bond/local command

please note, that the online docs always represent the *current*
version of LAMMPS and in that version (30 Sep 2016) we have "engpot".
as you can see from the "git annotate" output below, this was changed
on september 13th.

axel.

3f887c7a (sjplimp 2009-12-18 16:37:41 +0000 57) for (int iarg = 3;
iarg < narg; iarg++) {
a62be73b (sjplimp 2013-02-08 18:09:25 +0000 58) if
(strcmp(arg[iarg],"dist") == 0) bstyle[nvalues++] = DIST;
babaa839 (sjplimp 2016-09-13 22:55:40 +0000 59) else if
(strcmp(arg[iarg],"engpot") == 0) bstyle[nvalues++] = ENGPOT;
a62be73b (sjplimp 2013-02-08 18:09:25 +0000 60) else if
(strcmp(arg[iarg],"force") == 0) bstyle[nvalues++] = FORCE;
babaa839 (sjplimp 2016-09-13 22:55:40 +0000 61) else if
(strcmp(arg[iarg],"engvib") == 0) bstyle[nvalues++] = ENGVIB;
babaa839 (sjplimp 2016-09-13 22:55:40 +0000 62) else if
(strcmp(arg[iarg],"engrot") == 0) bstyle[nvalues++] = ENGROT;
babaa839 (sjplimp 2016-09-13 22:55:40 +0000 63) else if
(strcmp(arg[iarg],"engtrans") == 0) bstyle[nvalues++] = ENGTRANS;
babaa839 (sjplimp 2016-09-13 22:55:40 +0000 64) else if
(strcmp(arg[iarg],"omega") == 0) bstyle[nvalues++] = OMEGA;
babaa839 (sjplimp 2016-09-13 22:55:40 +0000 65) else if
(strcmp(arg[iarg],"velvib") == 0) bstyle[nvalues++] = VELVIB;
19e8c92a (sjplimp 2011-09-23 18:06:55 +0000 66) else
error->all(FLERR,"Invalid keyword in compute bond/local command");
3f887c7a (sjplimp 2009-12-18 16:37:41 +0000 67) }

axel.