Skip to content

Commit 0c8b3be

Browse files
arguments passed to insidePulsarBound must be rmin and rmax
1 parent f0f7537 commit 0c8b3be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Particles/PhysicalParticleContainer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,8 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox)
888888
amrex::Real yc = PulsarParm::center_star[1];
889889
amrex::Real zc = PulsarParm::center_star[2];
890890
amrex::Real rad = std::sqrt( (xb-xc)*(xb-xc) + (yb-yc)*(yb-yc) + (z0-zc)*(z0-zc));
891-
if (!inj_pos->insidePulsarBounds(rad,PulsarParm::R_star,PulsarParm::dR_star)) {
891+
if (!inj_pos->insidePulsarBounds(rad,PulsarParm::particle_inject_rmin,
892+
PulsarParm::particle_inject_rmax)) {
892893
p.id() = -1;
893894
continue;
894895
}

0 commit comments

Comments
 (0)