From 0d780b337cd4cbe92378c2b1f2239185c6dd33e8 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Fri, 8 Dec 2023 12:10:23 -0800 Subject: [PATCH] if condition thetaminmax --- Source/Particles/MultiParticleContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index f09f6806ee1..11429d5a94f 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -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