diff options
author | 2020-04-29 22:10:09 -0700 | |
---|---|---|
committer | 2020-04-29 22:10:09 -0700 | |
commit | 779661962a2d9db1e9555d25c010d7d285bbbd3b (patch) | |
tree | ca735d16bde76b3566ed1d2b45fa0f3ecb57fa9a /Source/FieldSolver/SpectralSolver/SpectralAlgorithms | |
parent | 06a2613a6c436ac76ac3cf03e4589b819a6f3453 (diff) | |
download | WarpX-779661962a2d9db1e9555d25c010d7d285bbbd3b.tar.gz WarpX-779661962a2d9db1e9555d25c010d7d285bbbd3b.tar.zst WarpX-779661962a2d9db1e9555d25c010d7d285bbbd3b.zip |
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.
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanAlgorithm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |