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(BL_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, const std::string prefix,
54  bool plot_raw_fields,
55  bool plot_raw_fields_guards,
56  bool plot_raw_rho, bool plot_raw_F) const override;
57 
61  void WriteParticles(const amrex::Vector<ParticleDiag>& particle_diags) const;
62 
63 private:
64  std::string m_insitu_config;
65  int m_insitu_pin_mesh = 0;
66  amrex::AmrMeshInSituBridge * m_insitu_bridge = nullptr;
67  amrex::AmrMesh * m_amr_mesh = nullptr;
68 };
69 
70 #endif // WARPX_FLUSHFORMATSENSEI_H_
Definition: FlushFormat.H:7
std::string m_insitu_config
Definition: FlushFormatSensei.H:64
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: PML.H:52