Skip to content

Commit

Permalink
arguments passed to insidePulsarBound must be rmin and rmax
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Sep 15, 2021
1 parent 8ea4a4d commit f64d483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f64d483

Please sign in to comment.