aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 4a0a46766..1f5ade13a 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -387,15 +387,10 @@ WarpX::ReadParameters ()
pp.query("dump_plotfiles", dump_plotfiles);
pp.query("plot_raw_fields", plot_raw_fields);
pp.query("plot_raw_fields_guards", plot_raw_fields_guards);
- /*
- if (ParallelDescriptor::NProcs() == 1) {
- plot_proc_number = false;
- }
- */
pp.query("plot_coarsening_ratio", plot_coarsening_ratio);
- int do_user_plot_vars;
- do_user_plot_vars = pp.queryarr("fields_to_plot", fields_to_plot);
- if (not do_user_plot_vars){
+ bool user_fields_to_plot;
+ user_fields_to_plot = pp.queryarr("fields_to_plot", fields_to_plot);
+ if (not user_fields_to_plot){
// If not specified, set default values
fields_to_plot = {"Ex", "Ey", "Ez", "Bx", "By",
"Bz", "jx", "jy", "jz",