ARTEMIS
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  virtual void WriteToFile (
26  const amrex::Vector<std::string> varnames,
29  const amrex::Vector<int> iteration, const double time,
30  const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
31  const std::string prefix, int file_min_digits,
32  bool plot_raw_fields,
33  bool plot_raw_fields_guards,
34  const 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,
39  const amrex::Vector<int>& totalParticlesFlushedAlready = amrex::Vector<int>() ) const override;
40 
42  void WriteJobInfo(const std::string& dir) const;
44  void WriteWarpXHeader(const std::string& name, amrex::Vector<amrex::Geometry>& geom) const;
45  void WriteAllRawFields (const bool plot_raw_fields, const int nlevels,
46  const std::string& plotfilename,
47  const bool plot_raw_fields_guards) const;
53  void WriteParticles(const std::string& filename,
54  const amrex::Vector<ParticleDiag>& particle_diags,
55  bool isBTD = false) const;
56 
58 };
59 
60 #endif // WARPX_FLUSHFORMATPLOTFILE_H_
Definition: FlushFormat.H:11
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:112
void WriteParticles(const std::string &filename, const amrex::Vector< ParticleDiag > &particle_diags, bool isBTD=false) const
Write particles data to file.
Definition: FlushFormatPlotfile.cpp:335
~FlushFormatPlotfile()
Definition: FlushFormatPlotfile.H:57
void WriteWarpXHeader(const std::string &name, amrex::Vector< amrex::Geometry > &geom) const
Definition: FlushFormatPlotfile.cpp:234
void WriteAllRawFields(const bool plot_raw_fields, const int nlevels, const std::string &plotfilename, const bool plot_raw_fields_guards) const
Definition: FlushFormatPlotfile.cpp:538
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
Definition: FlushFormatPlotfile.cpp:57
string name
Definition: stencil.py:452
filename
Definition: write_atomic_data_cpp.py:21