WarpX
FlushFormatCheckpoint.H
Go to the documentation of this file.
1 #ifndef WARPX_FLUSHFORMATCHECKPOINT_H_
2 #define WARPX_FLUSHFORMATCHECKPOINT_H_
3 
4 #include "FlushFormatPlotfile.H"
5 
7 
8 #include <AMReX_Geometry.H>
9 #include <AMReX_Vector.H>
10 
11 #include <AMReX_BaseFwd.H>
12 
13 #include <string>
14 
16 {
18  void WriteToFile (
19  const amrex::Vector<std::string>& varnames,
22  amrex::Vector<int> iteration, double time,
23  const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
24  std::string prefix, int file_min_digits,
25  bool plot_raw_fields,
26  bool plot_raw_fields_guards,
27  bool use_pinned_pc = false,
28  bool isBTD = false, int snapshotID = -1,
29  int bufferID = 1, int numBuffers = 1,
30  const amrex::Geometry& full_BTD_snapshot = amrex::Geometry(),
31  bool isLastBTDFlush = false) const final;
32 
33  void CheckpointParticles (const std::string& dir,
34  const amrex::Vector<ParticleDiag>& particle_diags) const;
35 
36  void WriteDMaps (const std::string& dir, int nlev) const;
37 };
38 
39 #endif // WARPX_FLUSHFORMATCHECKPOINT_H_
Definition: FlushFormatCheckpoint.H:16
void WriteToFile(const amrex::Vector< std::string > &varnames, const amrex::Vector< amrex::MultiFab > &mf, amrex::Vector< amrex::Geometry > &geom, amrex::Vector< int > iteration, double time, const amrex::Vector< ParticleDiag > &particle_diags, int nlev, std::string prefix, int file_min_digits, bool plot_raw_fields, bool plot_raw_fields_guards, bool use_pinned_pc=false, bool isBTD=false, int snapshotID=-1, int bufferID=1, int numBuffers=1, const amrex::Geometry &full_BTD_snapshot=amrex::Geometry(), bool isLastBTDFlush=false) const final
Definition: FlushFormatCheckpoint.cpp:31
void WriteDMaps(const std::string &dir, int nlev) const
Definition: FlushFormatCheckpoint.cpp:212
void CheckpointParticles(const std::string &dir, const amrex::Vector< ParticleDiag > &particle_diags) const
Definition: FlushFormatCheckpoint.cpp:173
This class aims at dumping diags data to disk using the AMReX Plotfile format. In particular,...
Definition: FlushFormatPlotfile.H:22