From 768093cffd18a2c37d90be1033ae94c3ff38776a Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Thu, 9 May 2019 15:53:08 -0700 Subject: move particle plot options to PPC --- Source/WarpX.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/WarpX.cpp') diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index a3a24897a..f0b990859 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -371,6 +371,9 @@ WarpX::ReadParameters () if (ParallelDescriptor::NProcs() == 1) { plot_proc_number = false; } + pp.query("plot_E_field" , plot_E_field); + pp.query("plot_B_field" , plot_B_field); + pp.query("plot_J_field" , plot_J_field); pp.query("plot_part_per_cell", plot_part_per_cell); pp.query("plot_part_per_grid", plot_part_per_grid); pp.query("plot_part_per_proc", plot_part_per_proc); @@ -429,6 +432,7 @@ WarpX::ReadParameters () } // select which particle comps to write + /* { pp.queryarr("particle_plot_vars", particle_plot_vars); @@ -460,6 +464,7 @@ WarpX::ReadParameters () } } } + */ pp.query("load_balance_int", load_balance_int); pp.query("load_balance_with_sfc", load_balance_with_sfc); -- cgit v1.2.3 From e25f80f2f4317a6126cdd47609c454dcd124646d Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Thu, 9 May 2019 21:10:31 -0700 Subject: forgot to remove some comments --- Source/WarpX.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'Source/WarpX.cpp') diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index f0b990859..661399ea3 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -431,41 +431,6 @@ WarpX::ReadParameters () fine_tag_hi = RealVect{hi}; } - // select which particle comps to write - /* - { - pp.queryarr("particle_plot_vars", particle_plot_vars); - - if (particle_plot_vars.size() == 0) - { - 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 - { - 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) - { - particle_plot_flags[ParticleStringNames::to_index.at(var)] = 1; - } - } - } - */ - pp.query("load_balance_int", load_balance_int); pp.query("load_balance_with_sfc", load_balance_with_sfc); pp.query("load_balance_knapsack_factor", load_balance_knapsack_factor); -- cgit v1.2.3