aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-09 21:18:22 -0700
committerGravatar GitHub <noreply@github.com> 2019-05-09 21:18:22 -0700
commit383b9250d433472b809d6a7e6360133b9fd5892c (patch)
treee30f83d35754ebd093b4713924802a3bf13b57d6 /Source/WarpX.cpp
parent1bedcc5de542f0ec6eeaff7dde369a12c2913f93 (diff)
parent5746e74241d61261454ab941a9b4d3d94f1ea1ec (diff)
downloadWarpX-383b9250d433472b809d6a7e6360133b9fd5892c.tar.gz
WarpX-383b9250d433472b809d6a7e6360133b9fd5892c.tar.zst
WarpX-383b9250d433472b809d6a7e6360133b9fd5892c.zip
Merge pull request #120 from ECP-WarpX/compute_max_step
automatically compute max_step for LPA in boost
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 661399ea3..eb84af2c7 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -32,6 +32,8 @@ int WarpX::moving_window_dir = -1;
Real WarpX::gamma_boost = 1.;
Real WarpX::beta_boost = 0.;
Vector<int> WarpX::boost_direction = {0,0,0};
+int WarpX::do_compute_max_step_from_zmax = 0;
+Real WarpX::zmax_plasma_to_compute_max_step = 0.;
long WarpX::current_deposition_algo = 3;
long WarpX::charge_deposition_algo = 0;
@@ -272,6 +274,12 @@ WarpX::ReadParameters ()
ReadBoostedFrameParameters(gamma_boost, beta_boost, boost_direction);
+ // pp.query returns 1 if argument zmax_plasma_to_compute_max_step is
+ // specified by the user, 0 otherwise.
+ do_compute_max_step_from_zmax =
+ pp.query("zmax_plasma_to_compute_max_step",
+ zmax_plasma_to_compute_max_step);
+
pp.queryarr("B_external", B_external);
pp.query("do_moving_window", do_moving_window);