aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
diff options
context:
space:
mode:
authorGravatar Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com> 2021-02-18 09:39:26 -0800
committerGravatar GitHub <noreply@github.com> 2021-02-18 09:39:26 -0800
commit85b55bae22da4d26474fce172988c53022592371 (patch)
treeccd2f46caa78b60b1d3f34cc68221132ab8c136c /Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
parentc43bf54e996cbaa52feaf32f8fb2f4fc22fa9814 (diff)
downloadWarpX-85b55bae22da4d26474fce172988c53022592371.tar.gz
WarpX-85b55bae22da4d26474fce172988c53022592371.tar.zst
WarpX-85b55bae22da4d26474fce172988c53022592371.zip
Plotfile capability for BTD (#1576)
* add geometry object and plotfile variables for BTD * temporarily disable species output * fix indices for output multifab * add diag geom for output * rename as m_output_species * delete unnecessary deletion of m_species * fixing buffer and snapshot definitions and emptying/refilling of buffers * Adding Plotfile capability for BTD * added BTD plotfile impl in cmake * fix eol * add comments and remove commented line in OpnPMD * remove unnecesary print statement * eol * remove unusued var * Read Fab on Disk string from buffer header * virtual function * initializing snapshot geom * read header without bcast within io scope and modify fabname in first fabheader * remove tab * add empty line back
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
index f3569666c..2c29bae42 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp
@@ -15,7 +15,7 @@ void
FlushFormatCheckpoint::WriteToFile (
const amrex::Vector<std::string> /*varnames*/,
const amrex::Vector<amrex::MultiFab>& /*mf*/,
- amrex::Vector<amrex::Geometry>& /*geom*/,
+ amrex::Vector<amrex::Geometry>& geom,
const amrex::Vector<int> iteration, const double /*time*/,
const amrex::Vector<ParticleDiag>& particle_diags, int nlev, const std::string prefix,
bool /*plot_raw_fields*/,
@@ -36,7 +36,7 @@ FlushFormatCheckpoint::WriteToFile (
// const int nlevels = finestLevel()+1;
amrex::PreBuildDirectorHierarchy(checkpointname, default_level_prefix, nlev, true);
- WriteWarpXHeader(checkpointname, particle_diags);
+ WriteWarpXHeader(checkpointname, particle_diags, geom);
WriteJobInfo(checkpointname);