WarpX
Loading...
Searching...
No Matches
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{
23public:
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 int verbose = 2,
35 bool use_pinned_pc = false,
36 bool isBTD = false, int snapshotID = -1,
37 int bufferID = 1, int numBuffers = 1,
38 const amrex::Geometry& full_BTD_snapshot = amrex::Geometry(),
39 bool isLastBTDFlush = false) 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 (bool plot_raw_fields, int nlevels,
46 const std::string& plotfilename,
47 bool plot_raw_fields_guards) const;
54 void WriteParticles(const std::string& dir,
55 const amrex::Vector<ParticleDiag>& particle_diags,
56 amrex::Real time,
57 bool isBTD = false) const;
58
59 FlushFormatPlotfile () = default;
60 ~FlushFormatPlotfile() override = default;
61
66};
67
68#endif // WARPX_FLUSHFORMATPLOTFILE_H_
FlushFormat()=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, int verbose=2, 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:68
void WriteJobInfo(const std::string &dir) const
Definition FlushFormatPlotfile.cpp:126
~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:355
void WriteAllRawFields(bool plot_raw_fields, int nlevels, const std::string &plotfilename, bool plot_raw_fields_guards) const
Definition FlushFormatPlotfile.cpp:580
void WriteWarpXHeader(const std::string &name, amrex::Vector< amrex::Geometry > &geom) const
Definition FlushFormatPlotfile.cpp:248
FlushFormatPlotfile(FlushFormatPlotfile &&)=default
FlushFormatPlotfile & operator=(FlushFormatPlotfile const &)=default
FlushFormatPlotfile(FlushFormatPlotfile const &)=default
FlushFormatPlotfile()=default