aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-09 15:53:08 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-09 15:53:08 -0700
commit768093cffd18a2c37d90be1033ae94c3ff38776a (patch)
tree371cbf8afd804806a6cf9b75e15d5a67f4bc375d /Source/Particles/PhysicalParticleContainer.cpp
parentc7126b7855d4206a5f78555c1ed7978f68769968 (diff)
downloadWarpX-768093cffd18a2c37d90be1033ae94c3ff38776a.tar.gz
WarpX-768093cffd18a2c37d90be1033ae94c3ff38776a.tar.zst
WarpX-768093cffd18a2c37d90be1033ae94c3ff38776a.zip
move particle plot options to PPC
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 2fa39d87d..c6bc92ff6 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -82,6 +82,26 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp
pp.query("do_splitting", do_splitting);
pp.query("split_type", split_type);
pp.query("do_continuous_injection", do_continuous_injection);
+ {
+ pp.queryarr("plot_vars", plot_vars);
+ if (plot_vars.size() == 0){
+ if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles){
+ plot_flags.resize(PIdx::nattribs + 6, 1);
+ } else {
+ plot_flags.resize(PIdx::nattribs, 1);
+ }
+ } else {
+ if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles){
+ plot_flags.resize(PIdx::nattribs + 6, 0);
+ } else {
+ plot_flags.resize(PIdx::nattribs, 0);
+ }
+
+ for (const auto& var : plot_vars){
+ plot_flags[ParticleStringNames::to_index.at(var)] = 1;
+ }
+ }
+ }
}
PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core)