From 32f3c8f55dfbe7efcf17ba97c0cd4a9fb1246b0f Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Mon, 29 Apr 2019 12:44:08 -0700 Subject: make sure we pass the right number of flags into the WritePlotFile routine --- Source/WarpX.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Source/WarpX.cpp') diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index a1c90da91..191537192 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -435,11 +435,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) { -- cgit v1.2.3