aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-11-02 10:46:49 -0700
committerGravatar GitHub <noreply@github.com> 2021-11-02 17:46:49 +0000
commit3b09e5199b0cd880f9a30d0eb433ca600c2096ec (patch)
tree1efe3220abde94380c51f6d65375fd5a8a058d08 /Source
parent6d2d756feb3b3abc4834d8a062e6e601709f1107 (diff)
downloadWarpX-3b09e5199b0cd880f9a30d0eb433ca600c2096ec.tar.gz
WarpX-3b09e5199b0cd880f9a30d0eb433ca600c2096ec.tar.zst
WarpX-3b09e5199b0cd880f9a30d0eb433ca600c2096ec.zip
Diagnostics Interval: Non-Optional Input (#2507)
The defaults were `0` (diags) and `1` (reduced diags). These defaults can lead to user-mistakes (forgetting the parameter) and neither `0` nor every step `1` are sensible defaults. Thus, require the user to set this parameter in all cases.
Diffstat (limited to 'Source')
-rw-r--r--Source/Diagnostics/FullDiagnostics.cpp2
-rw-r--r--Source/Diagnostics/ReducedDiags/ReducedDiags.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/FullDiagnostics.cpp b/Source/Diagnostics/FullDiagnostics.cpp
index 6ef74f0f3..3490c4755 100644
--- a/Source/Diagnostics/FullDiagnostics.cpp
+++ b/Source/Diagnostics/FullDiagnostics.cpp
@@ -80,7 +80,7 @@ FullDiagnostics::ReadParameters ()
m_format == "sensei",
"<diag>.format must be plotfile or openpmd or checkpoint or ascent or sensei");
std::vector<std::string> intervals_string_vec = {"0"};
- pp_diag_name.queryarr("intervals", intervals_string_vec);
+ pp_diag_name.getarr("intervals", intervals_string_vec);
m_intervals = IntervalsParser(intervals_string_vec);
bool raw_specified = pp_diag_name.query("plot_raw_fields", m_plot_raw_fields);
raw_specified += pp_diag_name.query("plot_raw_fields_guards", m_plot_raw_fields_guards);
diff --git a/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp b/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp
index b1d8723e2..eff95fcda 100644
--- a/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp
+++ b/Source/Diagnostics/ReducedDiags/ReducedDiags.cpp
@@ -56,7 +56,7 @@ ReducedDiags::ReducedDiags (std::string rd_name)
// read reduced diags intervals
std::vector<std::string> intervals_string_vec = {"1"};
- pp_rd_name.queryarr("intervals", intervals_string_vec);
+ pp_rd_name.getarr("intervals", intervals_string_vec);
m_intervals = IntervalsParser(intervals_string_vec);
// read separator