aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2020-04-29 22:10:09 -0700
committerGravatar GitHub <noreply@github.com> 2020-04-29 22:10:09 -0700
commit779661962a2d9db1e9555d25c010d7d285bbbd3b (patch)
treeca735d16bde76b3566ed1d2b45fa0f3ecb57fa9a /Source/FieldSolver/SpectralSolver/SpectralAlgorithms
parent06a2613a6c436ac76ac3cf03e4589b819a6f3453 (diff)
downloadWarpX-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.cpp6
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;