From 65b9dfc08d8acb35b714ef9cce144f3917df1dba Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Mon, 11 Jun 2018 17:44:10 -0700 Subject: fix PSATD compilation. --- Source/WarpXEvolve.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/WarpXEvolve.cpp') 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 cell_centered_data = GetCellCenteredData(); - myBFD->writeLabFrameData(*cell_centered_data, geom[0], cur_time); + std::unique_ptr 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); -- cgit v1.2.3