WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Diagnostics
FlushFormats
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
6
#include "
Diagnostics/ParticleDiag/ParticleDiag_fwd.H
"
7
8
#include <
AMReX_Geometry.H
>
9
#include <
AMReX_Vector.H
>
10
11
#include <
AMReX_BaseFwd.H
>
12
13
#include <string>
14
15
class
FlushFormatCheckpoint
final :
public
FlushFormatPlotfile
16
{
18
void
WriteToFile
(
19
const
amrex::Vector<std::string>
& varnames,
20
const
amrex::Vector<amrex::MultiFab>
& mf,
21
amrex::Vector<amrex::Geometry>
& geom,
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
int
verbose = 2,
28
bool
use_pinned_pc =
false
,
29
bool
isBTD =
false
,
int
snapshotID = -1,
30
int
bufferID = 1,
int
numBuffers = 1,
31
const
amrex::Geometry
& full_BTD_snapshot =
amrex::Geometry
(),
32
bool
isLastBTDFlush =
false
)
const
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
void
WriteReducedDiagsData
(std::string
const
& dir)
const
;
40
};
41
42
#endif
// WARPX_FLUSHFORMATCHECKPOINT_H_
AMReX_BaseFwd.H
AMReX_Geometry.H
AMReX_Vector.H
FlushFormatPlotfile.H
ParticleDiag_fwd.H
FlushFormatCheckpoint
Definition
FlushFormatCheckpoint.H:16
FlushFormatCheckpoint::WriteToFile
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 final
Definition
FlushFormatCheckpoint.cpp:41
FlushFormatCheckpoint::WriteDMaps
void WriteDMaps(const std::string &dir, int nlev) const
Definition
FlushFormatCheckpoint.cpp:261
FlushFormatCheckpoint::CheckpointParticles
void CheckpointParticles(const std::string &dir, const amrex::Vector< ParticleDiag > &particle_diags) const
Definition
FlushFormatCheckpoint.cpp:201
FlushFormatCheckpoint::WriteReducedDiagsData
void WriteReducedDiagsData(std::string const &dir) const
Definition
FlushFormatCheckpoint.cpp:290
FlushFormatPlotfile::FlushFormatPlotfile
FlushFormatPlotfile()=default
amrex::Geometry
amrex::Vector
Generated by
1.17.0