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)
8 # include <AMReX_AmrMeshInSituBridge.H>
9 #else
10 namespace amrex {
11 using AmrMeshInSituBridge = void;
12 }
13 #endif
14 
33 {
34 public:
37 
38  FlushFormatSensei(const FlushFormatSensei &) = delete;
39  void operator=(const FlushFormatSensei &) = delete;
40 
45  FlushFormatSensei (amrex::AmrMesh *amr_mesh, std::string diag_name);
46 
48  virtual void WriteToFile (
49  const amrex::Vector<std::string> varnames,
50  const amrex::Vector<amrex::MultiFab>& mf,
51  amrex::Vector<amrex::Geometry>& geom,
52  const amrex::Vector<int> iteration, const double time,
53  const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
54  const std::string prefix, int file_min_digits,
55  bool plot_raw_fields,
56  bool plot_raw_fields_guards,
57  bool plot_raw_rho, bool plot_raw_F,
58  bool isBTD = false, int snapshotID = -1,
59  const amrex::Geometry& full_BTD_snapshot = amrex::Geometry(),
60  bool isLastBTDFlush = false) const override;
61 
65  void WriteParticles(const amrex::Vector<ParticleDiag>& particle_diags) const;
66 
67 private:
68  std::string m_insitu_config;
69  int m_insitu_pin_mesh = 0;
70  amrex::AmrMeshInSituBridge * m_insitu_bridge = nullptr;
71  amrex::AmrMesh * m_amr_mesh = nullptr;
72 };
73 
74 #endif // WARPX_FLUSHFORMATSENSEI_H_
Definition: FlushFormat.H:10
std::string m_insitu_config
Definition: FlushFormatSensei.H:68
This class aims at dumping performing in-situ diagnostics with SENSEI. In particular, function WriteToFile takes fields and particles as input arguments, and calls amrex functions to do the in-situ visualization.
Definition: FlushFormatSensei.H:32
Definition: BreitWheelerEngineWrapper.H:35