aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpXInitData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpXInitData.cpp')
-rw-r--r--Source/WarpXInitData.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/WarpXInitData.cpp b/Source/WarpXInitData.cpp
index 1278b3d9b..df01afe88 100644
--- a/Source/WarpXInitData.cpp
+++ b/Source/WarpXInitData.cpp
@@ -29,6 +29,8 @@ WarpX::InitData ()
ComputePMLFactors();
+ InitDiagnostics();
+
if (ParallelDescriptor::IOProcessor()) {
std::cout << "\nGrids Summary:\n";
printGridSummary(std::cout, 0, finestLevel());
@@ -46,6 +48,21 @@ WarpX::InitData ()
}
void
+WarpX::InitDiagnostics () {
+ if (do_boosted_frame_diagnostic) {
+ const Real* current_lo = geom[0].ProbLo();
+ const Real* current_hi = geom[0].ProbHi();
+ Real dt_boost = dt[0];
+
+ myBFD.reset(new BoostedFrameDiagnostic(current_lo[moving_window_dir],
+ current_hi[moving_window_dir],
+ moving_window_v, dt_snapshots_lab,
+ num_snapshots_lab, gamma_boost, dt_boost,
+ moving_window_dir));
+ }
+}
+
+void
WarpX::InitFromScratch ()
{
const Real time = 0.0;