Skip to content

Commit

Permalink
fix duplication. particles injected before PIC loop, and removed at t…
Browse files Browse the repository at this point in the history
…he end of the loop
  • Loading branch information
RevathiJambunathan committed Sep 15, 2021
1 parent 66ba2fd commit 47b59db
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Source/Evolve/WarpXEvolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,19 +364,6 @@ WarpX::Evolve (int numsteps)
}
mypc->PulsarParticleRemoval();
#endif

#ifdef PULSAR
if (!rho_fp[0]) {
amrex::Print() << " no rho -- compute rho! \n";
}
else {
amrex::Print() << " rho is computed \n";
}
mypc->PulsarParticleRemoval();
mypc->PulsarParticleInjection();
mypc->Redistribute();
#endif

mypc->ApplyBoundaryConditions();

// interact with particles with EB walls (if present)
Expand Down

0 comments on commit 47b59db

Please sign in to comment.