WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Diagnostics
FlushFormats
FlushFormatSensei.H
Go to the documentation of this file.
1
#ifndef WARPX_FLUSHFORMATSENSEI_H_
2
#define WARPX_FLUSHFORMATSENSEI_H_
3
4
#include "
FlushFormat.H
"
5
6
#include <
AMReX_AmrMesh.H
>
7
#if defined(AMREX_USE_SENSEI_INSITU)
8
# include <AMReX_AmrMeshParticleInSituBridge.H>
9
#else
10
namespace
amrex
{
11
using
AmrMeshParticleInSituBridge = void;
12
}
13
#endif
14
32
class
FlushFormatSensei
:
public
FlushFormat
33
{
34
public
:
35
FlushFormatSensei
();
36
~FlushFormatSensei
()
override
;
37
38
FlushFormatSensei
(
const
FlushFormatSensei
&) =
delete
;
39
FlushFormatSensei
&
operator=
(
const
FlushFormatSensei
&) =
delete
;
40
FlushFormatSensei
(
FlushFormatSensei
&&) =
default
;
41
FlushFormatSensei
&
operator=
(
FlushFormatSensei
&& ) =
default
;
42
48
FlushFormatSensei
(
amrex::AmrMesh
*amr_mesh,
const
std::string& diag_name);
49
51
void
WriteToFile
(
52
const
amrex::Vector<std::string>
& varnames,
53
const
amrex::Vector<amrex::MultiFab>
& mf,
54
amrex::Vector<amrex::Geometry>
& geom,
55
amrex::Vector<int>
iteration,
double
time,
56
const
amrex::Vector<ParticleDiag>
& particle_diags,
int
nlev,
57
std::string prefix,
int
file_min_digits,
58
bool
plot_raw_fields,
59
bool
plot_raw_fields_guards,
60
int
verbose = 2,
61
bool
use_pinned_pc =
false
,
62
bool
isBTD =
false
,
int
snapshotID = -1,
63
int
bufferID = 1,
int
numBuffers = 1,
64
const
amrex::Geometry
& full_BTD_snapshot =
amrex::Geometry
(),
65
bool
isLastBTDFlush =
false
)
const override
;
66
70
void
WriteParticles
(
const
amrex::Vector<ParticleDiag>
& particle_diags)
const
;
71
72
private
:
73
std::string
m_insitu_config
;
74
int
m_insitu_pin_mesh
= 0;
75
amrex::AmrMeshParticleInSituBridge *
m_insitu_bridge
=
nullptr
;
76
amrex::AmrMesh
*
m_amr_mesh
=
nullptr
;
77
};
78
79
#endif
// WARPX_FLUSHFORMATSENSEI_H_
AMReX_AmrMesh.H
FlushFormat.H
FlushFormat::FlushFormat
FlushFormat()=default
FlushFormatSensei::m_insitu_pin_mesh
int m_insitu_pin_mesh
Definition
FlushFormatSensei.H:74
FlushFormatSensei::FlushFormatSensei
FlushFormatSensei(const FlushFormatSensei &)=delete
FlushFormatSensei::FlushFormatSensei
FlushFormatSensei()
FlushFormatSensei::FlushFormatSensei
FlushFormatSensei(FlushFormatSensei &&)=default
FlushFormatSensei::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 override
Definition
FlushFormatSensei.cpp:44
FlushFormatSensei::operator=
FlushFormatSensei & operator=(const FlushFormatSensei &)=delete
FlushFormatSensei::operator=
FlushFormatSensei & operator=(FlushFormatSensei &&)=default
FlushFormatSensei::m_insitu_config
std::string m_insitu_config
Definition
FlushFormatSensei.H:73
FlushFormatSensei::~FlushFormatSensei
~FlushFormatSensei() override
Definition
FlushFormatSensei.cpp:35
FlushFormatSensei::WriteParticles
void WriteParticles(const amrex::Vector< ParticleDiag > &particle_diags) const
Do in-situ visualization for particle data.
Definition
FlushFormatSensei.cpp:93
FlushFormatSensei::m_amr_mesh
amrex::AmrMesh * m_amr_mesh
Definition
FlushFormatSensei.H:76
FlushFormatSensei::m_insitu_bridge
amrex::AmrMeshParticleInSituBridge * m_insitu_bridge
Definition
FlushFormatSensei.H:75
amrex::AmrMesh
amrex::Geometry
amrex::Vector
amrex
Generated by
1.17.0