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 Jan 30, 2021
1 parent d63b4b3 commit 8d3f3d5
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 @@ -888,7 +888,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 8d3f3d5

Please sign in to comment.