WarpX
FlushFormatAscent.H
Go to the documentation of this file.
1 #ifndef WARPX_FLUSHFORMATASCENT_H_
2 #define WARPX_FLUSHFORMATASCENT_H_
3 
4 #include "FlushFormat.H"
5 
7 
8 #ifdef AMREX_USE_ASCENT
10 #endif
11 #include <AMReX_Geometry.H>
12 #include <AMReX_Vector.H>
13 
14 #include <AMReX_BaseFwd.H>
15 
16 #ifdef AMREX_USE_ASCENT
17 # include <ascent.hpp>
18 #endif
19 
20 #include <string>
21 
28 {
29 public:
31  void WriteToFile (
32  const amrex::Vector<std::string>& varnames,
35  amrex::Vector<int> iteration, double time,
36  const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
37  std::string prefix, int file_min_digits,
38  bool plot_raw_fields,
39  bool plot_raw_fields_guards,
40  bool use_pinned_pc = false,
41  bool isBTD = false, int snapshotID = -1,
42  int bufferID = 1, int numBuffers = 1,
43  const amrex::Geometry& full_BTD_snapshot = amrex::Geometry(),
44  bool isLastBTDFlush = false ) const override;
45 
46 #ifdef AMREX_USE_ASCENT
52  void WriteParticles(const amrex::Vector<ParticleDiag>& particle_diags, conduit::Node& a_bp_mesh) const;
53 #endif
54 
55  FlushFormatAscent () = default;
56  ~FlushFormatAscent() override = default;
57 
58  FlushFormatAscent ( FlushFormatAscent const &) = default;
62 };
63 
64 #endif // WARPX_FLUSHFORMATASCENT_H_
This class aims at dumping performing in-situ diagnostics with ASCENT. In particular,...
Definition: FlushFormatAscent.H:28
FlushFormatAscent()=default
~FlushFormatAscent() override=default
FlushFormatAscent(FlushFormatAscent const &)=default
FlushFormatAscent & operator=(FlushFormatAscent const &)=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, 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: FlushFormatAscent.cpp:13
FlushFormatAscent(FlushFormatAscent &&)=default
Definition: FlushFormat.H:10