diff options
author | 2017-12-12 14:36:50 -0800 | |
---|---|---|
committer | 2017-12-12 14:36:50 -0800 | |
commit | 70a67f6bc0217d0a1f7a17e76dd49cf61ceed570 (patch) | |
tree | e2942a2078fcefa2acd39fe6bbb9ed2e2271acc8 /Source/WarpXInitData.cpp | |
parent | 0733670571e666729dd759a95b63e5924cde08c8 (diff) | |
download | WarpX-70a67f6bc0217d0a1f7a17e76dd49cf61ceed570.tar.gz WarpX-70a67f6bc0217d0a1f7a17e76dd49cf61ceed570.tar.zst WarpX-70a67f6bc0217d0a1f7a17e76dd49cf61ceed570.zip |
Pass the lab frame positions to the BoostedFrameDiagnostics
Diffstat (limited to 'Source/WarpXInitData.cpp')
-rw-r--r-- | Source/WarpXInitData.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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)); |