update some tables and comments for the current state of LAMMPS

This commit is contained in:
Axel Kohlmeyer
2023-09-01 00:00:55 -04:00
parent 8bde9ffd53
commit da1db776b6

View File

@ -63,7 +63,7 @@ const char *lmp_id[] = {"compute", "dump", "fix", "molecule", "region", "variabl
std::vector<std::string> commands;
// this list of commands is generated by:
// grep '!strcmp(command,' ../../src/input.cpp | sed -e 's/^.*!strcmp(command,"\(.*\)".*$/"\1",/'
// grep 'mycmd ==' src/input.cpp | sed -e 's/^.*mycmd == \(".*"\).*$/\1,/
const char *cmdlist[] = {"clear",
"echo",
@ -87,7 +87,6 @@ const char *cmdlist[] = {"clear",
"bond_style",
"bond_write",
"boundary",
"box",
"comm_modify",
"comm_style",
"compute",
@ -105,6 +104,7 @@ const char *cmdlist[] = {"clear",
"improper_style",
"kspace_modify",
"kspace_style",
"labelmap",
"lattice",
"mass",
"min_modify",
@ -118,7 +118,6 @@ const char *cmdlist[] = {"clear",
"pair_modify",
"pair_style",
"pair_write",
"plugin",
"processors",
"region",
"reset_timestep",
@ -134,7 +133,8 @@ const char *cmdlist[] = {"clear",
"uncompute",
"undump",
"unfix",
"units"};
"units",
"reset_atoms"};
static char *dupstring(const std::string &text)
{
@ -355,7 +355,17 @@ static char *plugin_generator(const char *text, int state)
static char *plugin_style_generator(const char *text, int state)
{
const char *styles[] = {"pair", "fix", "command", nullptr};
const char *styles[] = {"pair",
"bond",
"angle",
"dihedral"
"improper",
"kspace",
"compute",
"fix",
"region",
"command",
nullptr};
const char *s;
static std::size_t idx = 0, len;
if (!state) idx = 0;