diff options
author | 2023-05-05 14:24:00 -0700 | |
---|---|---|
committer | 2023-05-05 14:24:00 -0700 | |
commit | b590b2051c17f34ec735c1e4b8df3cddd0936ae5 (patch) | |
tree | 72fb134088f3dc50cc34e71c9d6d963e3fa9e963 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 913973eddf82a3566d7ea847c52b6324ffadf6af (diff) | |
download | WarpX-b590b2051c17f34ec735c1e4b8df3cddd0936ae5.tar.gz WarpX-b590b2051c17f34ec735c1e4b8df3cddd0936ae5.tar.zst WarpX-b590b2051c17f34ec735c1e4b8df3cddd0936ae5.zip |
Prevent implicit capture on GPU for RZ sims (#3895)
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index ac6aecbac..0c9b7ce69 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1482,6 +1482,7 @@ PhysicalParticleContainer::AddPlasmaFlux (amrex::Real dt) #ifdef WARPX_DIM_RZ const int nmodes = WarpX::n_rz_azimuthal_modes; + const bool rz_random_theta = m_rz_random_theta; bool radially_weighted = plasma_injector->radially_weighted; #endif @@ -1793,7 +1794,7 @@ PhysicalParticleContainer::AddPlasmaFlux (amrex::Real dt) // Replace the x and y, setting an angle theta. // These x and y are used to get the momentum and density Real theta; - if (nmodes == 1 && m_rz_random_theta) { + if (nmodes == 1 && rz_random_theta) { // With only 1 mode, the angle doesn't matter so // choose it randomly. theta = 2._prt*MathConst::pi*amrex::Random(engine); |