aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 3ff4fb304..92a26ed8f 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -201,7 +201,7 @@ WarpX::ReadParameters ()
}
}
- pp.queryarr("B_external", B_external);
+ pp.queryarr("B_external", B_external);
pp.query("do_moving_window", do_moving_window);
if (do_moving_window)
@@ -299,6 +299,27 @@ WarpX::ReadParameters ()
pp.query("plot_crsepatch", plot_crsepatch);
}
+ {
+ int hv = checkpoint_headerversion;
+ pp.query("checkpoint_headerversion", hv);
+ checkpoint_headerversion = static_cast<VisMF::Header::Version>(hv);
+ hv = plot_headerversion;
+ pp.query("plot_headerversion", hv);
+ plot_headerversion = static_cast<VisMF::Header::Version>(hv);
+ pp.query("usesingleread", use_single_read);
+ pp.query("usesinglewrite", use_single_write);
+ ParmParse ppv("vismf");
+ ppv.add("usesingleread", use_single_read);
+ ppv.add("usesinglewrite", use_single_write);
+ pp.query("mffile_nstreams", mffile_nstreams);
+ VisMF::SetMFFileInStreams(mffile_nstreams);
+ pp.query("field_io_nfiles", field_io_nfiles);
+ VisMF::SetNOutFiles(field_io_nfiles);
+ pp.query("particle_io_nfiles", particle_io_nfiles);
+ ParmParse ppp("particles");
+ ppp.add("particles_nfiles", particle_io_nfiles);
+ }
+
if (maxLevel() > 0) {
Vector<Real> lo, hi;
pp.getarr("fine_tag_lo", lo);