correct compute argument count check, avoid segfault

This commit is contained in:
Axel Kohlmeyer
2025-02-14 16:55:09 -05:00
parent 7f82dcd835
commit ca5015eaea
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ Compute::Compute(LAMMPS *lmp, int narg, char **arg) :
{
instance_me = instance_total++;
if (narg < 3) error->all(FLERR,"Illegal compute command");
if (narg < 3) utils::missing_cmd_args(FLERR,"compute", error);
// compute ID, group, and style
// ID must be all alphanumeric chars or underscores