ARTEMIS
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  virtual void WriteToFile (
19  const amrex::Vector<std::string> varnames,
22  const amrex::Vector<int> iteration, const double time,
23  const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
24  const std::string prefix, int file_min_digits,
25  bool plot_raw_fields,
26  bool plot_raw_fields_guards,
27  const 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,
32  const amrex::Vector<int>& totalParticlesFlushedAlready = amrex::Vector<int>() ) const override final;
33 
34  void CheckpointParticles (const std::string& dir,
35  const amrex::Vector<ParticleDiag>& particle_diags) const;
36 
37  void WriteDMaps (const std::string& dir, int nlev) const;
38 };
39 
40 #endif // WARPX_FLUSHFORMATCHECKPOINT_H_
Definition: FlushFormatCheckpoint.H:16
virtual void WriteToFile(const amrex::Vector< std::string > varnames, const amrex::Vector< amrex::MultiFab > &mf, 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, int file_min_digits, bool plot_raw_fields, bool plot_raw_fields_guards, const 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 amrex::Vector< int > &totalParticlesFlushedAlready=amrex::Vector< int >()) const override final
Definition: FlushFormatCheckpoint.cpp:29
void WriteDMaps(const std::string &dir, int nlev) const
Definition: FlushFormatCheckpoint.cpp:255
void CheckpointParticles(const std::string &dir, const amrex::Vector< ParticleDiag > &particle_diags) const
Definition: FlushFormatCheckpoint.cpp:217
This class aims at dumping diags data to disk using the AMReX Plotfile format. In particular,...
Definition: FlushFormatPlotfile.H:22