Skip to content

Commit

Permalink
skip positions for pure SoA plotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Jan 23, 2024
1 parent 94a2686 commit 822cd42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 822cd42

Please sign in to comment.