From 70a67f6bc0217d0a1f7a17e76dd49cf61ceed570 Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Tue, 12 Dec 2017 14:36:50 -0800 Subject: Pass the lab frame positions to the BoostedFrameDiagnostics --- Source/WarpXInitData.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source/WarpXInitData.cpp') diff --git a/Source/WarpXInitData.cpp b/Source/WarpXInitData.cpp index df01afe88..0d6c35a4d 100644 --- a/Source/WarpXInitData.cpp +++ b/Source/WarpXInitData.cpp @@ -54,8 +54,12 @@ WarpX::InitDiagnostics () { 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], + // Find the positions of the lab-frame box that corresponds to the boosted-frame box at t=0 + Real zmin_lab = current_lo[moving_window_dir]/( (1.+beta_boost)*gamma_boost ); + Real zmax_lab = current_hi[moving_window_dir]/( (1.+beta_boost)*gamma_boost ); + + myBFD.reset(new BoostedFrameDiagnostic(zmin_lab, + zmax_lab, moving_window_v, dt_snapshots_lab, num_snapshots_lab, gamma_boost, dt_boost, moving_window_dir)); -- cgit v1.2.3