From 2c408a9c725a37a1717551433aed92f90992bf13 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 10 Sep 2023 19:02:22 -0400 Subject: [PATCH] sqrt() -> std::sqrt() and exp() -> std::exp() (#1330) --- EOS/breakout/actual_eos.H | 2 +- neutrinos/sneut5.H | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EOS/breakout/actual_eos.H b/EOS/breakout/actual_eos.H index e55123f6a0..342b36fba7 100644 --- a/EOS/breakout/actual_eos.H +++ b/EOS/breakout/actual_eos.H @@ -123,7 +123,7 @@ void actual_eos (I input, T& state) state.gam1 = gamma_const; // sound speed - state.cs = sqrt(gamma_const * poverrho); + state.cs = std::sqrt(gamma_const * poverrho); state.dpdr_e = poverrho; state.dpde = (gamma_const - 1.0_rt) * state.rho; diff --git a/neutrinos/sneut5.H b/neutrinos/sneut5.H index 6b066a2895..c8d2a9fd70 100644 --- a/neutrinos/sneut5.H +++ b/neutrinos/sneut5.H @@ -347,7 +347,7 @@ void sneut5(const Real temp, const Real den, t9 = temp * 1.0e-9_rt; xl = t9 * con1; xldt = 1.0e-9_rt * con1; - xlp5 = sqrt(xl); + xlp5 = std::sqrt(xl); xl2 = xl*xl; xl3 = xl2*xl; xl4 = xl3*xl; @@ -391,10 +391,10 @@ void sneut5(const Real temp, const Real den, a2 = 2.084e20_rt + 2.0e0_rt*1.872e21_rt*zeta; if (t9 < 10.0_rt) { - b1 = exp(-5.5924e0_rt*zeta); + b1 = std::exp(-5.5924e0_rt*zeta); b2 = -b1*5.5924e0_rt; } else { - b1 = exp(-4.9924e0_rt*zeta); + b1 = std::exp(-4.9924e0_rt*zeta); b2 = -b1*4.9924e0_rt; }