From 779661962a2d9db1e9555d25c010d7d285bbbd3b Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 29 Apr 2020 22:10:09 -0700 Subject: CI: macOS Single Precision (#964) * CI: macOS Single Precision Add another compile with single precision on AppleClang. * AMReX' complex for everything This is nice and compliant and works on all platforms. --- .../SpectralSolver/SpectralAlgorithms/GalileanAlgorithm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanAlgorithm.cpp index b69277d15..49e318e3c 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanAlgorithm.cpp @@ -193,9 +193,9 @@ void GalileanAlgorithm::InitializeSpectralCoefficients(const SpectralKSpace& spe #endif const Real nu = kv/(k_norm*c); - const Complex theta = MathFunc::exp( 0.5_rt*I*kv*dt ); - const Complex theta_star = MathFunc::exp( -0.5_rt*I*kv*dt ); - const Complex e_theta = MathFunc::exp( I*c*k_norm*dt ); + const Complex theta = amrex::exp( 0.5_rt*I*kv*dt ); + const Complex theta_star = amrex::exp( -0.5_rt*I*kv*dt ); + const Complex e_theta = amrex::exp( I*c*k_norm*dt ); Theta2(i,j,k) = theta*theta; -- cgit v1.2.3