From a70d27d44993f41442f6676b8daa4e62be3bee54 Mon Sep 17 00:00:00 2001 From: Achim Gsell <achim.gsell@psi.ch> Date: Fri, 3 May 2024 14:18:58 +0200 Subject: [PATCH] ambiguous call to function reduce in ippl tests fixed --- ippl/test/PwrSpec/testPwrSpec.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ippl/test/PwrSpec/testPwrSpec.cpp b/ippl/test/PwrSpec/testPwrSpec.cpp index 7773851cf..295894058 100644 --- a/ippl/test/PwrSpec/testPwrSpec.cpp +++ b/ippl/test/PwrSpec/testPwrSpec.cpp @@ -33,8 +33,6 @@ Build: #include <iostream> #include <set> -using namespace std; - // dimension of our positions const unsigned Dim = 3; @@ -289,7 +287,7 @@ public: k2 -= nr_m[2]; kk=(int)nint(sqrt(ii*ii+jj*jj+k2*k2)); - kk = min(kmax_m, (int)kk); + kk = std::min(kmax_m, (int)kk); spectra1D_m[kk] += real(rho_m.localElement(loop)); Nk_m[kk]++; } -- GitLab