aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpXEvolve.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2018-06-11 17:44:10 -0700
committerGravatar Andrew Myers <atmyers2@gmail.com> 2018-06-11 17:44:10 -0700
commit65b9dfc08d8acb35b714ef9cce144f3917df1dba (patch)
treefe07bd0ff859c39891b455ddf20a7981a10a8756 /Source/WarpXEvolve.cpp
parente6d905402875512f772321379d71771372829f9e (diff)
downloadWarpX-65b9dfc08d8acb35b714ef9cce144f3917df1dba.tar.gz
WarpX-65b9dfc08d8acb35b714ef9cce144f3917df1dba.tar.zst
WarpX-65b9dfc08d8acb35b714ef9cce144f3917df1dba.zip
fix PSATD compilation.
Diffstat (limited to 'Source/WarpXEvolve.cpp')
-rw-r--r--Source/WarpXEvolve.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WarpXEvolve.cpp b/Source/WarpXEvolve.cpp
index b3673ab6c..b4a249e71 100644
--- a/Source/WarpXEvolve.cpp
+++ b/Source/WarpXEvolve.cpp
@@ -858,8 +858,11 @@ WarpX::EvolvePSATD (int numsteps)
}
if (do_boosted_frame_diagnostic) {
- std::unique_ptr<MultiFab> cell_centered_data = GetCellCenteredData();
- myBFD->writeLabFrameData(*cell_centered_data, geom[0], cur_time);
+ std::unique_ptr<MultiFab> cell_centered_data = nullptr;
+ if (WarpX::do_boosted_frame_fields) {
+ cell_centered_data = GetCellCenteredData();
+ }
+ myBFD->writeLabFrameData(cell_centered_data.get(), *mypc, geom[0], cur_time, dt[0]);
}
bool to_make_plot = (plot_int > 0) && ((step+1) % plot_int == 0);