WarpX
Loading...
Searching...
No Matches
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
10namespace amrex {
11using AmrMeshParticleInSituBridge = void;
12}
13#endif
14
33{
34public:
36 ~FlushFormatSensei() override;
37
42
48 FlushFormatSensei (amrex::AmrMesh *amr_mesh, const std::string& diag_name);
49
51 void WriteToFile (
52 const amrex::Vector<std::string>& varnames,
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
72private:
73 std::string m_insitu_config;
75 amrex::AmrMeshParticleInSituBridge * m_insitu_bridge = nullptr;
77};
78
79#endif // WARPX_FLUSHFORMATSENSEI_H_
FlushFormat()=default
int m_insitu_pin_mesh
Definition FlushFormatSensei.H:74
FlushFormatSensei(const FlushFormatSensei &)=delete
FlushFormatSensei(FlushFormatSensei &&)=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 FlushFormatSensei.cpp:44
FlushFormatSensei & operator=(const FlushFormatSensei &)=delete
FlushFormatSensei & operator=(FlushFormatSensei &&)=default
std::string m_insitu_config
Definition FlushFormatSensei.H:73
~FlushFormatSensei() override
Definition FlushFormatSensei.cpp:35
void WriteParticles(const amrex::Vector< ParticleDiag > &particle_diags) const
Do in-situ visualization for particle data.
Definition FlushFormatSensei.cpp:93
amrex::AmrMesh * m_amr_mesh
Definition FlushFormatSensei.H:76
amrex::AmrMeshParticleInSituBridge * m_insitu_bridge
Definition FlushFormatSensei.H:75