diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index b70878d05..532858556 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -395,8 +395,8 @@ WarpX::ReadParameters () AMREX_ALWAYS_ASSERT_WITH_MESSAGE(do_dive_cleaning, "plot_F only works if warpx.do_dive_cleaning = 1"); } + pp.query("plot_finepatch", plot_finepatch); if (maxLevel() > 0) { - pp.query("plot_finepatch", plot_finepatch); pp.query("plot_crsepatch", plot_crsepatch); } @@ -436,11 +436,25 @@ WarpX::ReadParameters () if (particle_plot_vars.size() == 0) { - particle_plot_flags.resize(PIdx::nattribs, 1); + if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles) + { + particle_plot_flags.resize(PIdx::nattribs + 6, 1); + } + else + { + particle_plot_flags.resize(PIdx::nattribs, 1); + } } else { - particle_plot_flags.resize(PIdx::nattribs, 0); + if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles) + { + particle_plot_flags.resize(PIdx::nattribs + 6, 0); + } + else + { + particle_plot_flags.resize(PIdx::nattribs, 0); + } for (const auto& var : particle_plot_vars) { |