tap_flag is integer and thus we should use utils::inumeric()

This commit is contained in:
Axel Kohlmeyer
2025-06-28 03:58:27 -04:00
parent 2968bfa8d9
commit 22a42446d3
6 changed files with 6 additions and 6 deletions

View File

@ -61,5 +61,5 @@ void PairAIPWATER2DM::settings(int narg, char **arg)
error->all(FLERR, "Pair style aip/water/2dm must be used as sub-style with hybrid/overlay");
cut_global = utils::numeric(FLERR, arg[0], false, lmp);
if (narg == 2) tap_flag = utils::numeric(FLERR, arg[1], false, lmp);
if (narg == 2) tap_flag = utils::inumeric(FLERR, arg[1], false, lmp);
}

View File

@ -183,7 +183,7 @@ void PairCoulShield::settings(int narg, char **arg)
if (narg < 1 || narg > 2) error->all(FLERR, "Illegal pair_style command");
cut_global = utils::numeric(FLERR, arg[0], false, lmp);
if (narg == 2) tap_flag = utils::numeric(FLERR, arg[1], false, lmp);
if (narg == 2) tap_flag = utils::inumeric(FLERR, arg[1], false, lmp);
// reset cutoffs that have been explicitly set

View File

@ -165,7 +165,7 @@ void PairILPGrapheneHBN::settings(int narg, char **arg)
error->all(FLERR, "Pair style ilp/graphene/hbn must be used as sub-style with hybrid/overlay");
cut_global = utils::numeric(FLERR, arg[0], false, lmp);
if (narg == 2) tap_flag = utils::numeric(FLERR, arg[1], false, lmp);
if (narg == 2) tap_flag = utils::inumeric(FLERR, arg[1], false, lmp);
}
/* ----------------------------------------------------------------------

View File

@ -72,7 +72,7 @@ void PairILPTMD::settings(int narg, char **arg)
error->all(FLERR, "Pair style ilp/tmd must be used as sub-style with hybrid/overlay");
cut_global = utils::numeric(FLERR, arg[0], false, lmp);
if (narg == 2) tap_flag = utils::numeric(FLERR, arg[1], false, lmp);
if (narg == 2) tap_flag = utils::inumeric(FLERR, arg[1], false, lmp);
}
/* ----------------------------------------------------------------------

View File

@ -145,7 +145,7 @@ void PairKolmogorovCrespiFull::settings(int narg, char **arg)
"Pair style kolmogorov/crespi/full must be used as sub-style with hybrid/overlay");
cut_global = utils::numeric(FLERR, arg[0], false, lmp);
if (narg == 2) tap_flag = utils::numeric(FLERR, arg[1], false, lmp);
if (narg == 2) tap_flag = utils::inumeric(FLERR, arg[1], false, lmp);
}
/* ----------------------------------------------------------------------

View File

@ -64,7 +64,7 @@ void PairSAIPMETAL::settings(int narg, char **arg)
error->all(FLERR, "Pair style saip/metal must be used as sub-style with hybrid/overlay");
cut_global = utils::numeric(FLERR, arg[0], false, lmp);
if (narg == 2) tap_flag = utils::numeric(FLERR, arg[1], false, lmp);
if (narg == 2) tap_flag = utils::inumeric(FLERR, arg[1], false, lmp);
}
/* ----------------------------------------------------------------------