Skip to content

Commit

Permalink
numppc is sigmafactor timesTotalParticles
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Aug 3, 2023
1 parent e9bb1d6 commit 7288251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Particles/PulsarParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,8 @@ Pulsar::FlagCellsForInjectionWithPcounts ()
//amrex::Real num_part_real = 0.;
//amrex::Real factor = amrex::Math::abs( 1. - 3. * std::cos(theta)*std::cos(theta));
amrex::Real factor = sigma_inj_ring(i,j,k)/sum_magnetization;
amrex::Real num_part_cell = num_ppc_modified_real * factor;
amrex::Real num_part_cell = ParticlesToBeInjected * factor;
//amrex::Real num_part_cell = num_ppc_modified_real * factor;
int numpart_int = static_cast<int>(num_part_cell);
if (numpart_int == 0) {
amrex::Real r1 = amrex::Random(engine);
Expand Down

0 comments on commit 7288251

Please sign in to comment.