From e78d85725b0adc48b08c65ee14a9730c43b4515d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 28 Jun 2025 02:01:23 -0400 Subject: [PATCH] convert to internal linkage with anonymous namespace --- src/ML-PACE/pair_pace_extrapolation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ML-PACE/pair_pace_extrapolation.cpp b/src/ML-PACE/pair_pace_extrapolation.cpp index 5ac857d748..890a09df99 100644 --- a/src/ML-PACE/pair_pace_extrapolation.cpp +++ b/src/ML-PACE/pair_pace_extrapolation.cpp @@ -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)