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; std::vector<std::string> commands;
// this list of commands is generated by: // 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", const char *cmdlist[] = {"clear",
"echo", "echo",
@ -87,7 +87,6 @@ const char *cmdlist[] = {"clear",
"bond_style", "bond_style",
"bond_write", "bond_write",
"boundary", "boundary",
"box",
"comm_modify", "comm_modify",
"comm_style", "comm_style",
"compute", "compute",
@ -105,6 +104,7 @@ const char *cmdlist[] = {"clear",
"improper_style", "improper_style",
"kspace_modify", "kspace_modify",
"kspace_style", "kspace_style",
"labelmap",
"lattice", "lattice",
"mass", "mass",
"min_modify", "min_modify",
@ -118,7 +118,6 @@ const char *cmdlist[] = {"clear",
"pair_modify", "pair_modify",
"pair_style", "pair_style",
"pair_write", "pair_write",
"plugin",
"processors", "processors",
"region", "region",
"reset_timestep", "reset_timestep",
@ -134,7 +133,8 @@ const char *cmdlist[] = {"clear",
"uncompute", "uncompute",
"undump", "undump",
"unfix", "unfix",
"units"}; "units",
"reset_atoms"};
static char *dupstring(const std::string &text) 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) 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; const char *s;
static std::size_t idx = 0, len; static std::size_t idx = 0, len;
if (!state) idx = 0; if (!state) idx = 0;