remove redundant code
This commit is contained in:
@ -47,11 +47,6 @@ void PairEAMAlloyOMP::coeff(int narg, char **arg)
|
|||||||
|
|
||||||
if (narg != 3 + atom->ntypes) error->all(FLERR, "Incorrect args for pair coefficients");
|
if (narg != 3 + atom->ntypes) error->all(FLERR, "Incorrect args for pair coefficients");
|
||||||
|
|
||||||
// ensure I,J args are * *
|
|
||||||
|
|
||||||
if (strcmp(arg[0], "*") != 0 || strcmp(arg[1], "*") != 0)
|
|
||||||
error->all(FLERR, "Incorrect args for pair coefficients");
|
|
||||||
|
|
||||||
// read EAM setfl file
|
// read EAM setfl file
|
||||||
|
|
||||||
if (setfl) {
|
if (setfl) {
|
||||||
|
|||||||
@ -47,11 +47,6 @@ void PairEAMFSOMP::coeff(int narg, char **arg)
|
|||||||
|
|
||||||
if (narg != 3 + atom->ntypes) error->all(FLERR, "Incorrect args for pair coefficients");
|
if (narg != 3 + atom->ntypes) error->all(FLERR, "Incorrect args for pair coefficients");
|
||||||
|
|
||||||
// ensure I,J args are * *
|
|
||||||
|
|
||||||
if (strcmp(arg[0], "*") != 0 || strcmp(arg[1], "*") != 0)
|
|
||||||
error->all(FLERR, "Incorrect args for pair coefficients");
|
|
||||||
|
|
||||||
// read EAM Finnis-Sinclair file
|
// read EAM Finnis-Sinclair file
|
||||||
|
|
||||||
if (fs) {
|
if (fs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user