Skip to content

Commit

Permalink
if condition thetaminmax
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Dec 8, 2023
1 parent 8ea5b0e commit 0d780b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Particles/MultiParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2135,8 +2135,8 @@ MultiParticleContainer::PulsarPairInjection ()
+ (pos.y-yc)*(pos.y-yc)
+ (pos.z-zc)*(pos.z-zc));
if (rad > 0) theta_p = std::acos(amrex::Math::abs(pos.z-zc)/rad);
if (amrex::Math::abs(theta_p) > pulsar_removeparticle_theta_min*MathConst::pi/180. and
amrex::Math::abs(theta_p) < pulsar_removeparticle_theta_max*MathConst::pi/180.) {
if ( (amrex::Math::abs(theta_p) > (pulsar_removeparticle_theta_min*MathConst::pi/180. )) &&
(amrex::Math::abs(theta_p) < (pulsar_removeparticle_theta_max*MathConst::pi/180. ))) {
ZeroInitializeAndSetNegativeID(p_sp1, pa_sp1, ip
#ifdef WARPX_QED
,loc_has_quantum_sync_sp1, p_optical_depth_QSR_sp1
Expand Down

0 comments on commit 0d780b3

Please sign in to comment.