aboutsummaryrefslogtreecommitdiff
path: root/Source/Evolve/WarpXEvolveEM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Evolve/WarpXEvolveEM.cpp')
-rw-r--r--Source/Evolve/WarpXEvolveEM.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Evolve/WarpXEvolveEM.cpp b/Source/Evolve/WarpXEvolveEM.cpp
index ff55724f8..75643d748 100644
--- a/Source/Evolve/WarpXEvolveEM.cpp
+++ b/Source/Evolve/WarpXEvolveEM.cpp
@@ -276,6 +276,9 @@ WarpX::EvolveEM (int numsteps)
void
WarpX::OneStep_nosub (Real cur_time)
{
+ // Loop over species. For each ionizable species, create particles in
+ // product species.
+ mypc->doFieldIonization();
// Push particle from x^{n} to x^{n+1}
// from p^{n-1/2} to p^{n+1/2}
// Deposit current j^{n+1/2}
@@ -339,6 +342,10 @@ WarpX::OneStep_sub1 (Real curtime)
{
// TODO: we could save some charge depositions
+ // Loop over species. For each ionizable species, create particles in
+ // product species.
+ mypc->doFieldIonization();
+
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(finest_level == 1, "Must have exactly two levels");
const int fine_lev = 1;
const int coarse_lev = 0;