diff options
author | 2019-05-23 10:21:52 -0700 | |
---|---|---|
committer | 2019-05-23 10:21:52 -0700 | |
commit | 62b03c30d50899f3c7c334f06c7cee7ad8c55543 (patch) | |
tree | 457617d3e11bdd47762c7e15f93ab64ed11b52b8 /Source/WarpX.cpp | |
parent | 821f0107b70d3155849d46bbde7de5d58f2d1406 (diff) | |
parent | a371b86164248dd7d41313d9bd555f1ab88fc5ee (diff) | |
download | WarpX-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.cpp | 3 |
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"), |