diff options
author | 2018-02-06 13:56:38 -0800 | |
---|---|---|
committer | 2018-02-06 13:56:38 -0800 | |
commit | ec6dd873d46a87707c20aa09b58c691d37a36f98 (patch) | |
tree | cfa6a71947445b185f9d197bfeec356ddbbadffb /Source/WarpXInitData.cpp | |
parent | c081449f8f1729ef6f635743e95e96c345ae5d2c (diff) | |
parent | 2d3cca8885f44fe4f8829e1f066e83cffce82c57 (diff) | |
download | WarpX-ec6dd873d46a87707c20aa09b58c691d37a36f98.tar.gz WarpX-ec6dd873d46a87707c20aa09b58c691d37a36f98.tar.zst WarpX-ec6dd873d46a87707c20aa09b58c691d37a36f98.zip |
Merge branch 'master' into with_python
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)); |