convert to internal linkage with anonymous namespace

This commit is contained in:
Axel Kohlmeyer
2025-06-28 02:01:23 -04:00
parent 1b36451f6a
commit e78d85725b

View File

@ -65,6 +65,7 @@ struct ACEALImpl {
using namespace LAMMPS_NS;
using namespace MathConst;
namespace {
static char const *const elements_pace_al[] = {
"X", "H", "He", "Li", "Be", "B", "C", "N", "O", "F", "Ne", "Na", "Mg", "Al", "Si",
"P", "S", "Cl", "Ar", "K", "Ca", "Sc", "Ti", "V", "Cr", "Mn", "Fe", "Co", "Ni", "Cu",
@ -81,6 +82,7 @@ int AtomicNumberByName_pace_al(char *elname)
if (strcmp(elname, elements_pace_al[i]) == 0) return i;
return -1;
}
} // namespace
/* ---------------------------------------------------------------------- */
PairPACEExtrapolation::PairPACEExtrapolation(LAMMPS *lmp) : Pair(lmp)