WarpX
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)
9 #else
10 namespace amrex {
11 using AmrMeshParticleInSituBridge = void;
12 }
13 #endif
14 
33 {
34 public:
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  bool use_pinned_pc = false,
61  bool isBTD = false, int snapshotID = -1,
62  int bufferID = 1, int numBuffers = 1,
63  const amrex::Geometry& full_BTD_snapshot = amrex::Geometry(),
64  bool isLastBTDFlush = false) const override;
65 
69  void WriteParticles(const amrex::Vector<ParticleDiag>& particle_diags) const;
70 
71 private:
72  std::string m_insitu_config;
74  amrex::AmrMeshParticleInSituBridge * m_insitu_bridge = nullptr;
76 };
77 
78 #endif // WARPX_FLUSHFORMATSENSEI_H_
Definition: FlushFormat.H:10
This class aims at dumping performing in-situ diagnostics with SENSEI. In particular,...
Definition: FlushFormatSensei.H:33
int m_insitu_pin_mesh
Definition: FlushFormatSensei.H:73
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, 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:46
FlushFormatSensei(const FlushFormatSensei &)=delete
FlushFormatSensei(FlushFormatSensei &&)=default
std::string m_insitu_config
Definition: FlushFormatSensei.H:72
~FlushFormatSensei() override
Definition: FlushFormatSensei.cpp:37
FlushFormatSensei & operator=(FlushFormatSensei &&)=default
void WriteParticles(const amrex::Vector< ParticleDiag > &particle_diags) const
Do in-situ visualization for particle data.
Definition: FlushFormatSensei.cpp:93
FlushFormatSensei & operator=(const FlushFormatSensei &)=delete
amrex::AmrMesh * m_amr_mesh
Definition: FlushFormatSensei.H:75
amrex::AmrMeshParticleInSituBridge * m_insitu_bridge
Definition: FlushFormatSensei.H:74