aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index ff8509369..719212e3b 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -87,6 +87,7 @@ bool WarpX::galerkin_interpolation = true;
bool WarpX::use_filter = false;
bool WarpX::use_kspace_filter = false;
bool WarpX::use_filter_compensation = false;
+bool WarpX::use_damp_fields_in_z_guard = false;
bool WarpX::serialize_ics = false;
bool WarpX::refine_plasma = false;
@@ -634,6 +635,7 @@ WarpX::ReadParameters ()
ParmParse pp("psatd");
pp.query("periodic_single_box_fft", fft_periodic_single_box);
pp.query("fftw_plan_measure", fftw_plan_measure);
+
std::string nox_str;
std::string noy_str;
std::string noz_str;
@@ -681,6 +683,14 @@ WarpX::ReadParameters ()
// Overwrite update_with_rho with value set in input file
pp.query("update_with_rho", update_with_rho);
+
+# ifdef WARPX_DIM_RZ
+ if (!Geom(0).isPeriodic(1)) {
+ use_damp_fields_in_z_guard = true;
+ }
+ pp.query("use_damp_fields_in_z_guard", use_damp_fields_in_z_guard);
+# endif
+
}
#endif