diff options
author | 2018-01-05 00:21:58 +0000 | |
---|---|---|
committer | 2018-01-05 00:21:58 +0000 | |
commit | 240d6a823d23ad5bc1635ab341d7b0e0c000fbca (patch) | |
tree | 4c4ba7d67871a2032c493890c6d65fb9648509cc /Source/WarpXInitData.cpp | |
parent | b9b4951ee5f7c3ab66dbc365f1a884fbc7fc9bce (diff) | |
parent | 70a67f6bc0217d0a1f7a17e76dd49cf61ceed570 (diff) | |
download | WarpX-240d6a823d23ad5bc1635ab341d7b0e0c000fbca.tar.gz WarpX-240d6a823d23ad5bc1635ab341d7b0e0c000fbca.tar.zst WarpX-240d6a823d23ad5bc1635ab341d7b0e0c000fbca.zip |
Merged in fix_boosted_diags (pull request #48)
Pass the lab frame positions to the BoostedFrameDiagnostics
Approved-by: Andrew Myers <atmyers2@gmail.com>
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)); |