various coding style updates

This commit is contained in:
Axel Kohlmeyer
2024-01-19 13:00:29 -05:00
parent e0967af6e8
commit 39d21473a0
14 changed files with 33 additions and 53 deletions

View File

@ -60,13 +60,10 @@ AtomVecSphere::AtomVecSphere(LAMMPS *lmp) : AtomVec(lmp)
void AtomVecSphere::process_args(int narg, char **arg)
{
if (narg != 0 && narg != 1) error->all(FLERR, "Illegal atom_style sphere command");
if (narg > 1) error->all(FLERR, "Illegal atom_style sphere command");
radvary = 0;
if (narg == 1) {
radvary = utils::numeric(FLERR, arg[0], true, lmp);
if (radvary < 0 || radvary > 1) error->all(FLERR, "Illegal atom_style sphere command");
}
if (narg == 1) radvary = utils::logical(FLERR, arg[0], true, lmp);
// dynamic particle radius and mass must be communicated every step