From 822cd42610153e1c52d2cd7c34503a73823496ff Mon Sep 17 00:00:00 2001 From: Andrew Myers Date: Tue, 23 Jan 2024 03:33:21 -0800 Subject: [PATCH] skip positions for pure SoA plotfiles --- Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp index 745ba39b37f..6a2d0a208df 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp @@ -366,13 +366,14 @@ FlushFormatPlotfile::WriteParticles(const std::string& dir, #endif // get the names of the real comps - real_names.resize(tmp.NumRealComps()); + real_names.resize(tmp.NumRealComps()-AMREX_SPACEDIM); // skip positions for pure SoA plotfiles auto runtime_rnames = tmp.getParticleRuntimeComps(); for (auto const& x : runtime_rnames) { real_names[x.second+PIdx::nattribs] = x.first; } // plot any "extra" fields by default real_flags = part_diag.m_plot_flags; real_flags.resize(tmp.NumRealComps(), 1); + real_flags.erase(real_flags.begin(), real_flags.begin()+AMREX_SPACEDIM); // skip positions for pure SoA plotfiles // and the names int_names.resize(tmp.NumIntComps());