aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-05-01 14:45:01 -0700
committerGravatar GitHub <noreply@github.com> 2019-05-01 14:45:01 -0700
commit0f7796bc75d52bd066d5ef42eceab44f2a7fe87b (patch)
treedc7f3d6d1d9c478e26ad3379fea25c8aedaae180 /Source/WarpX.cpp
parente80b825f08f38c5a141ba2597c977f9a91feb0a5 (diff)
parentdeea0e1b3b96ac6f2ffc9a206f8f07f229c216ba (diff)
downloadWarpX-0f7796bc75d52bd066d5ef42eceab44f2a7fe87b.tar.gz
WarpX-0f7796bc75d52bd066d5ef42eceab44f2a7fe87b.tar.zst
WarpX-0f7796bc75d52bd066d5ef42eceab44f2a7fe87b.zip
Merge pull request #107 from ECP-WarpX/runtime_boosted_frame_particles
Runtime boosted frame particles
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 423ff649b..532858556 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -436,11 +436,25 @@ WarpX::ReadParameters ()
if (particle_plot_vars.size() == 0)
{
- particle_plot_flags.resize(PIdx::nattribs, 1);
+ if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles)
+ {
+ particle_plot_flags.resize(PIdx::nattribs + 6, 1);
+ }
+ else
+ {
+ particle_plot_flags.resize(PIdx::nattribs, 1);
+ }
}
else
{
- particle_plot_flags.resize(PIdx::nattribs, 0);
+ if (WarpX::do_boosted_frame_diagnostic && WarpX::do_boosted_frame_particles)
+ {
+ particle_plot_flags.resize(PIdx::nattribs + 6, 0);
+ }
+ else
+ {
+ particle_plot_flags.resize(PIdx::nattribs, 0);
+ }
for (const auto& var : particle_plot_vars)
{