From d168de00dbd0fe962e677b3fc13a8149822afb15 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 27 Jun 2025 23:57:37 -0400 Subject: [PATCH] silence compiler warnings --- src/ELECTRODE/electrode_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ELECTRODE/electrode_math.h b/src/ELECTRODE/electrode_math.h index d63ff71fa4..9c080c6fe7 100644 --- a/src/ELECTRODE/electrode_math.h +++ b/src/ELECTRODE/electrode_math.h @@ -29,7 +29,7 @@ using namespace EwaldConst; namespace ElectrodeMath { static constexpr double ERFCMAX = 5.8; // erfc(ERFCMAX) < machine epsilon(double) - static double safe_erfc(double x) + inline double safe_erfc(double x) { if (x > ERFCMAX) return 0.0; double expm2 = exp(-x * x); @@ -37,7 +37,7 @@ namespace ElectrodeMath { return t * (A1 + t * (A2 + t * (A3 + t * (A4 + t * A5)))) * expm2; } - static double safe_derfcr(double x, double &erfc) + inline double safe_derfcr(double x, double &erfc) { if (x > ERFCMAX) { erfc = 0.0;