diff options
Diffstat (limited to '')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 4eb97903f..7a32e051d 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1254,7 +1254,7 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) // 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) { + if (nmodes == 1 && rz_random_theta) { // With only 1 mode, the angle doesn't matter so // choose it randomly. theta = 2._rt*MathConst::pi*amrex::Random(engine); @@ -1793,7 +1793,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) { + if (nmodes == 1 && m_rz_random_theta) { // With only 1 mode, the angle doesn't matter so // choose it randomly. theta = 2._prt*MathConst::pi*amrex::Random(engine); |