aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpXEvolve.cpp
diff options
context:
space:
mode:
authorGravatar atmyers <atmyers2@gmail.com> 2017-01-23 11:25:04 -0800
committerGravatar atmyers <atmyers2@gmail.com> 2017-01-23 11:25:04 -0800
commit05e1438b61322cfd831e9dea8040852fd6759aaf (patch)
treeb16e0b80837b4dfc0a359f09563bc0fcdb722bb3 /Source/WarpXEvolve.cpp
parentcddcef197c594362bb3ddf3b1abaf750c64dbc71 (diff)
downloadWarpX-05e1438b61322cfd831e9dea8040852fd6759aaf.tar.gz
WarpX-05e1438b61322cfd831e9dea8040852fd6759aaf.tar.zst
WarpX-05e1438b61322cfd831e9dea8040852fd6759aaf.zip
Only ParmParse the plasma injection parameters at initialization.
Diffstat (limited to 'Source/WarpXEvolve.cpp')
-rw-r--r--Source/WarpXEvolve.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/WarpXEvolve.cpp b/Source/WarpXEvolve.cpp
index a3905b2ce..3f1001a42 100644
--- a/Source/WarpXEvolve.cpp
+++ b/Source/WarpXEvolve.cpp
@@ -307,11 +307,8 @@ WarpX::MoveWindow ()
shiftMF(*Efield[0][1], geom[0], num_shift, dir, Ey_nodal_flag);
shiftMF(*Efield[0][2], geom[0], num_shift, dir, Ez_nodal_flag);
-
// optionally fill the new cells with a uniform plasma
// (also level 0 only right now)
- ParmParse pp("warpx");
- pp.get("do_plasma_injection", do_plasma_injection);
if(do_plasma_injection) {
// particleBox encloses the cells where we generate particles
@@ -321,12 +318,9 @@ WarpX::MoveWindow ()
particleBox.shift(dir, sign*(domainLength - std::abs(num_shift)));
particleBox &= geom[0].Domain();
- // get information about the plasma to inject
- int n_part_per_cell, ispecies;
- pp.get("injected_plasma_ppc", n_part_per_cell);
- pp.get("injected_plasma_species", ispecies);
- Real weight;
- pp.get("injected_plasma_density", weight);
+ int n_part_per_cell = injected_plasma_ppc;
+ int ispecies = injected_plasma_species;
+ Real weight = injected_plasma_density;
const Real* dx = geom[0].CellSize();
#if BL_SPACEDIM==3