From 5b4686025632725c1c397bb14691c2b7425f6fbe Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 10 Sep 2023 18:02:00 -0400 Subject: [PATCH 1/3] sqrt() -> std::sqrt() --- neutrinos/sneut5.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutrinos/sneut5.H b/neutrinos/sneut5.H index 6b066a2895..7fbe0171c9 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; From 905f6a6c81b4ab6383633d6b6b9cb5f2ed34548a Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 10 Sep 2023 18:07:53 -0400 Subject: [PATCH 2/3] another one --- EOS/breakout/actual_eos.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 34526c7f1f84af8a1295cb5e9edcbb1163d16f20 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 10 Sep 2023 18:11:40 -0400 Subject: [PATCH 3/3] also exp --- neutrinos/sneut5.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutrinos/sneut5.H b/neutrinos/sneut5.H index 7fbe0171c9..c8d2a9fd70 100644 --- a/neutrinos/sneut5.H +++ b/neutrinos/sneut5.H @@ -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; }