remove redundant check

This commit is contained in:
Axel Kohlmeyer
2022-06-13 22:10:51 -04:00
parent 423c511d7a
commit 26dcb649bb

View File

@ -73,7 +73,6 @@ void CreateBonds::command(int narg, char **arg)
iarg = 6; iarg = 6;
} else if (strcmp(arg[0], "single/bond") == 0) { } else if (strcmp(arg[0], "single/bond") == 0) {
style = SBOND; style = SBOND;
if (narg < 4) error->all(FLERR, "Illegal create_bonds command");
btype = utils::inumeric(FLERR, arg[1], false, lmp); btype = utils::inumeric(FLERR, arg[1], false, lmp);
batom1 = utils::tnumeric(FLERR, arg[2], false, lmp); batom1 = utils::tnumeric(FLERR, arg[2], false, lmp);
batom2 = utils::tnumeric(FLERR, arg[3], false, lmp); batom2 = utils::tnumeric(FLERR, arg[3], false, lmp);