diff options
author | 2018-06-11 17:44:10 -0700 | |
---|---|---|
committer | 2018-06-11 17:44:10 -0700 | |
commit | 65b9dfc08d8acb35b714ef9cce144f3917df1dba (patch) | |
tree | fe07bd0ff859c39891b455ddf20a7981a10a8756 | |
parent | e6d905402875512f772321379d71771372829f9e (diff) | |
download | WarpX-65b9dfc08d8acb35b714ef9cce144f3917df1dba.tar.gz WarpX-65b9dfc08d8acb35b714ef9cce144f3917df1dba.tar.zst WarpX-65b9dfc08d8acb35b714ef9cce144f3917df1dba.zip |
fix PSATD compilation.
-rw-r--r-- | Source/WarpXEvolve.cpp | 7 |
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); |