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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index de97d79ea..e13a192a5 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -845,7 +845,9 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox)
// The invalid ones are given negative ID and are deleted during the
// next redistribute.
const auto poffset = offset.data();
+#ifdef WARPX_DIM_RZ
const bool rz_random_theta = m_rz_random_theta;
+#endif
amrex::ParallelForRNG(overlap_box,
[=] AMREX_GPU_DEVICE (int i, int j, int k, amrex::RandomEngine const& engine) noexcept
{