Skip to content

Commit

Permalink
fix particle output (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
asalmgren authored Nov 22, 2023
1 parent 8969459 commit aa1f6f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/IO/Plotfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ ERF::setPlotVariables (const std::string& pp_plot_var_names, Vector<std::string>
}
for (int i = 0; i < derived_names.size(); ++i) {
if ( containerHasElement(plot_var_names, derived_names[i]) ) {
#ifdef ERF_USE_PARTICLES
if ( (solverChoice.use_terrain || (derived_names[i] != "z_phys" && derived_names[i] != "detJ") ) &&
(particleData.use_tracer_particles || (derived_names[i] != "tracer_particle_count") ) &&
(particleData.use_hydro_particles || (derived_names[i] != "hydro_particle_count") ) ) {
#else
if (solverChoice.use_terrain || (derived_names[i] != "z_phys" && derived_names[i] != "detJ") ) {
#endif
tmp_plot_names.push_back(derived_names[i]);
}
}
Expand Down

0 comments on commit aa1f6f2

Please sign in to comment.