aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2020-03-10 14:02:51 -0700
committerGravatar GitHub <noreply@github.com> 2020-03-10 14:02:51 -0700
commit57ff5dcd3429c749bb2ee002830713351d645362 (patch)
tree149ff9fdd7109ad4402775c7d6a9d10297db5d10 /Source/Particles/PhysicalParticleContainer.cpp
parentdaa4ad785dc49e1806e30aac0ab173ed18a5c1cb (diff)
downloadWarpX-57ff5dcd3429c749bb2ee002830713351d645362.tar.gz
WarpX-57ff5dcd3429c749bb2ee002830713351d645362.tar.zst
WarpX-57ff5dcd3429c749bb2ee002830713351d645362.zip
With RZ, always write out theta (#782)
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 7af9bdac8..d5e3bfb99 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -130,6 +130,13 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp
plot_flags[ParticleStringNames::to_index.at(var)] = 1;
}
}
+
+#ifdef WARPX_DIM_RZ
+ // Always write out theta, whether or not it's requested,
+ // to be consistent with always writing out r and z.
+ plot_flags[ParticleStringNames::to_index.at("theta")] = 1;
+#endif
+
}
// Parse galilean velocity