We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2075825 commit c734171Copy full SHA for c734171
Source/Diagnostics/ParticleDiag/ParticleDiag.cpp
@@ -36,7 +36,11 @@ ParticleDiag::ParticleDiag (
36
std::fill(m_plot_flags.begin(), m_plot_flags.end(), 0);
37
bool contains_positions = false;
38
if (variables[0] != "none"){
39
- const std::map<std::string, int> existing_variable_names = pc->getParticleComps();
+ std::map<std::string, int> existing_variable_names = pc->getParticleComps();
40
+#ifdef WARPX_DIM_RZ
41
+ // we reconstruct to Cartesian x,y,z for RZ particle output
42
+ existing_variable_names["y"] = PIdx::theta;
43
+#endif
44
for (const auto& var : variables){
45
if (var == "phi") {
46
// User requests phi on particle. This is *not* part of the variables that
0 commit comments