diff options
author | 2021-07-15 06:37:28 -0700 | |
---|---|---|
committer | 2021-07-15 06:37:28 -0700 | |
commit | d51f7ed72547d46ce87c0ce402027ecf06d3950c (patch) | |
tree | b396ebd9ff31cf058aa07ce045bc323961cc5091 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 95244e7cd7109f9887147686fc8a9753517eb51b (diff) | |
download | WarpX-d51f7ed72547d46ce87c0ce402027ecf06d3950c.tar.gz WarpX-d51f7ed72547d46ce87c0ce402027ecf06d3950c.tar.zst WarpX-d51f7ed72547d46ce87c0ce402027ecf06d3950c.zip |
Fix Warning in 2D/3D Cartesian Builds (#2091)
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 2 |
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 { |