make default settings() functions for bonded interactions error out with arguments

This commit is contained in:
Axel Kohlmeyer
2022-05-14 17:55:56 -04:00
parent 42a4fba390
commit 1b552de1cd
8 changed files with 44 additions and 4 deletions

View File

@ -73,6 +73,16 @@ void Improper::init()
init_style();
}
/* ----------------------------------------------------------------------
check that there are no arguments
------------------------------------------------------------------------- */
void Improper::settings(int narg, char **args)
{
if (narg > 0)
error->all(FLERR, "Illegal improper_style {} argument: {}", force->improper_style, args[0]);
}
/* ----------------------------------------------------------------------
setup for energy, virial computation
see integrate::ev_set() for bitwise settings of eflag/vflag