From f64d483c3879f2b54006a4b000c89a2a14e7eb95 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Sat, 30 Jan 2021 15:30:15 -0800 Subject: [PATCH] arguments passed to insidePulsarBound must be rmin and rmax --- Source/Particles/PhysicalParticleContainer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index efb978de7d0..5b3e1eb2806 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1070,7 +1070,8 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) amrex::Real yc = PulsarParm::center_star[1]; amrex::Real zc = PulsarParm::center_star[2]; amrex::Real rad = std::sqrt( (xb-xc)*(xb-xc) + (yb-yc)*(yb-yc) + (z0-zc)*(z0-zc)); - if (!inj_pos->insidePulsarBounds(rad,PulsarParm::R_star,PulsarParm::dR_star)) { + if (!inj_pos->insidePulsarBounds(rad,PulsarParm::particle_inject_rmin, + PulsarParm::particle_inject_rmax)) { p.id() = -1; continue; }