aboutsummaryrefslogtreecommitdiff
path: root/Source/Initialization/PlasmaInjector.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-02 09:24:01 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-08-02 09:24:01 -0700
commitae96f412292262174bd89a2fe4e559b517f5b0d1 (patch)
treef0cdd196d14ab0ac31c9d6c67814ffa2bdc82e68 /Source/Initialization/PlasmaInjector.cpp
parentd2b7952caeccf6fad0a45d8dea3dfb84d6559a04 (diff)
downloadWarpX-ae96f412292262174bd89a2fe4e559b517f5b0d1.tar.gz
WarpX-ae96f412292262174bd89a2fe4e559b517f5b0d1.tar.zst
WarpX-ae96f412292262174bd89a2fe4e559b517f5b0d1.zip
remove particles below or above density thresholds
Diffstat (limited to 'Source/Initialization/PlasmaInjector.cpp')
-rw-r--r--Source/Initialization/PlasmaInjector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Initialization/PlasmaInjector.cpp b/Source/Initialization/PlasmaInjector.cpp
index a94a253a3..280f9e58a 100644
--- a/Source/Initialization/PlasmaInjector.cpp
+++ b/Source/Initialization/PlasmaInjector.cpp
@@ -81,6 +81,9 @@ PlasmaInjector::PlasmaInjector (int ispecies, const std::string& name)
pp.query("ymax", ymax);
pp.query("zmax", zmax);
+ pp.query("density_min", density_min);
+ pp.query("density_max", density_max);
+
// parse charge and mass
std::string charge_s;
pp.get("charge", charge_s);