aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp3
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);