From 47b59db5a29a3b5cd7a392a3758cfb1008790e7f Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Fri, 10 Sep 2021 17:12:56 -0700 Subject: [PATCH] fix duplication. particles injected before PIC loop, and removed at the end of the loop --- Source/Evolve/WarpXEvolve.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index bfe417d7171..41bd59bcce4 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -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)