WarpX
FlushFormatPlotfile.H
Go to the documentation of this file.
1 #ifndef WARPX_FLUSHFORMATPLOTFILE_H_
2 #define WARPX_FLUSHFORMATPLOTFILE_H_
3 
4 #include "FlushFormat.H"
5 
7 
8 #include <AMReX_Geometry.H>
9 #include <AMReX_Vector.H>
10 
11 #include <AMReX_BaseFwd.H>
12 
13 #include <iosfwd>
14 #include <string>
15 
22 {
23 public:
25  void WriteToFile (
26  const amrex::Vector<std::string>& varnames,
29  amrex::Vector<int> iteration, double time,
30  const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
31  std::string prefix, int file_min_digits,
32  bool plot_raw_fields,
33  bool plot_raw_fields_guards,
34  bool use_pinned_pc = false,
35  bool isBTD = false, int snapshotID = -1,
36  int bufferID = 1, int numBuffers = 1,
37  const amrex::Geometry& full_BTD_snapshot = amrex::Geometry(),
38  bool isLastBTDFlush = false) const override;
39 
41  void WriteJobInfo(const std::string& dir) const;
43  void WriteWarpXHeader(const std::string& name, amrex::Vector<amrex::Geometry>& geom) const;
44  void WriteAllRawFields (bool plot_raw_fields, int nlevels,
45  const std::string& plotfilename,
46  bool plot_raw_fields_guards) const;
53  void WriteParticles(const std::string& dir,
54  const amrex::Vector<ParticleDiag>& particle_diags,
55  amrex::Real time,
56  bool isBTD = false) const;
57 
58  FlushFormatPlotfile () = default;
59  ~FlushFormatPlotfile() override = default;
60 
65 };
66 
67 #endif // WARPX_FLUSHFORMATPLOTFILE_H_
Definition: FlushFormat.H:10
This class aims at dumping diags data to disk using the AMReX Plotfile format. In particular,...
Definition: FlushFormatPlotfile.H:22
void WriteJobInfo(const std::string &dir) const
Definition: FlushFormatPlotfile.cpp:114
~FlushFormatPlotfile() override=default
void WriteParticles(const std::string &dir, const amrex::Vector< ParticleDiag > &particle_diags, amrex::Real time, bool isBTD=false) const
Write particles data to file.
Definition: FlushFormatPlotfile.cpp:343
FlushFormatPlotfile & operator=(FlushFormatPlotfile const &)=default
void WriteAllRawFields(bool plot_raw_fields, int nlevels, const std::string &plotfilename, bool plot_raw_fields_guards) const
Definition: FlushFormatPlotfile.cpp:553
void WriteWarpXHeader(const std::string &name, amrex::Vector< amrex::Geometry > &geom) const
Definition: FlushFormatPlotfile.cpp:236
FlushFormatPlotfile(FlushFormatPlotfile &&)=default
FlushFormatPlotfile(FlushFormatPlotfile const &)=default
FlushFormatPlotfile()=default
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 override
Definition: FlushFormatPlotfile.cpp:59
name
Definition: run_automated.py:229