aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2022-02-16 19:21:47 -0800
committerGravatar GitHub <noreply@github.com> 2022-02-16 19:21:47 -0800
commitb52c7e260e1e3d4a6a0bf9680f679ef258efccb0 (patch)
tree34f81d93ac6f705e0bd3c00765793c39e311f7c6 /Source/Particles/PhysicalParticleContainer.cpp
parent19c51c7c979962fcfc1dc8d03ff04cd233593bf7 (diff)
downloadWarpX-b52c7e260e1e3d4a6a0bf9680f679ef258efccb0.tar.gz
WarpX-b52c7e260e1e3d4a6a0bf9680f679ef258efccb0.tar.zst
WarpX-b52c7e260e1e3d4a6a0bf9680f679ef258efccb0.zip
Rotate momentum for RZ flux injection (#2867)
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 1ee12b769..27bb7cf28 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1559,8 +1559,7 @@ PhysicalParticleContainer::AddPlasmaFlux (amrex::Real dt)
// Rotate the position
pos.x = xb*cos_theta;
pos.y = xb*sin_theta;
- if ( (inj_mom->type == InjectorMomentum::Type::gaussianflux) &&
- (loc_flux_normal_axis != 2) ) {
+ if (loc_flux_normal_axis != 2) {
// Rotate the momentum
// This because, when the flux direction is e.g. "r"
// the `inj_mom` objects generates a v*Gaussian distribution