diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 423ff649b..532858556 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -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) { |