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

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