aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2019-05-23 10:21:52 -0700
committerGravatar GitHub <noreply@github.com> 2019-05-23 10:21:52 -0700
commit62b03c30d50899f3c7c334f06c7cee7ad8c55543 (patch)
tree457617d3e11bdd47762c7e15f93ab64ed11b52b8 /Source/WarpX.cpp
parent821f0107b70d3155849d46bbde7de5d58f2d1406 (diff)
parenta371b86164248dd7d41313d9bd555f1ab88fc5ee (diff)
downloadWarpX-62b03c30d50899f3c7c334f06c7cee7ad8c55543.tar.gz
WarpX-62b03c30d50899f3c7c334f06c7cee7ad8c55543.tar.zst
WarpX-62b03c30d50899f3c7c334f06c7cee7ad8c55543.zip
Merge pull request #158 from ECP-WarpX/lab_data_directory
Allow the directory for the lab frame diagnostics to be set in the inputs file
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index e2c5ddf72..6b6752bf1 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -57,6 +57,7 @@ int WarpX::num_mirrors = 0;
int WarpX::sort_int = -1;
bool WarpX::do_boosted_frame_diagnostic = false;
+std::string WarpX::lab_data_directory = "lab_frame_data";
int WarpX::num_snapshots_lab = std::numeric_limits<int>::lowest();
Real WarpX::dt_snapshots_lab = std::numeric_limits<Real>::lowest();
bool WarpX::do_boosted_frame_fields = true;
@@ -316,6 +317,8 @@ WarpX::ReadParameters ()
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(gamma_boost > 1.0,
"gamma_boost must be > 1 to use the boosted frame diagnostic.");
+ pp.query("lab_data_directory", lab_data_directory);
+
std::string s;
pp.get("boost_direction", s);
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( (s == "z" || s == "Z"),