WarpX
BoundaryScrapingDiagnostics.H
Go to the documentation of this file.
1 /* Copyright 2022 Remi Lehe
2  *
3  * This file is part of WarpX.
4  *
5  * License: BSD-3-Clause-LBNL
6  */
7 #ifndef WARPX_BOUNDARYSCRAPINGDIAGNOSTICS_H_
8 #define WARPX_BOUNDARYSCRAPINGDIAGNOSTICS_H_
9 
10 #include "Diagnostics.H"
12 
13 #include <string>
14 
18 {
19 public:
20 
26  BoundaryScrapingDiagnostics (int i, const std::string& name);
27 
28 private:
30  void ReadParameters ();
31 
34 
36  void Flush (int i_buffer, bool /* force_flush */) override;
44  bool DoDump (int step, int i_buffer, bool force_flush=false) override;
49  bool DoComputeAndPack (int step, bool force_flush=false) override;
54  void InitializeBufferData (int i_buffer, int lev, bool restart=false) override;
59  void InitializeFieldFunctors (int lev) override;
63  void InitializeParticleBuffer () override;
64 
65 };
66 #endif // WARPX_BOUNDARYSCRAPINGDIAGNOSTICS_H_
Definition: BoundaryScrapingDiagnostics.H:18
void InitializeFieldFunctors(int lev) override
Definition: BoundaryScrapingDiagnostics.cpp:70
bool DoDump(int step, int i_buffer, bool force_flush=false) override
Return whether to dump data to file at this time step. (i.e. whether to call Flush)
Definition: BoundaryScrapingDiagnostics.cpp:114
void Flush(int i_buffer, bool) override
Flush data to file.
Definition: BoundaryScrapingDiagnostics.cpp:124
BoundaryScrapingDiagnostics(int i, const std::string &name)
Definition: BoundaryScrapingDiagnostics.cpp:24
utils::parser::IntervalsParser m_intervals
Definition: BoundaryScrapingDiagnostics.H:33
void ReadParameters()
Definition: BoundaryScrapingDiagnostics.cpp:31
void InitializeBufferData(int i_buffer, int lev, bool restart=false) override
Definition: BoundaryScrapingDiagnostics.cpp:78
bool DoComputeAndPack(int step, bool force_flush=false) override
Definition: BoundaryScrapingDiagnostics.cpp:108
void InitializeParticleBuffer() override
Definition: BoundaryScrapingDiagnostics.cpp:86
base class for diagnostics. Contains main routines to filter, compute and flush diagnostics.
Definition: Diagnostics.H:31
This class is a parser for multiple slices of the form x,y,z,... where x, y and z are slices of the f...
Definition: IntervalsParser.H:103
i
Definition: check_interp_points_and_weights.py:174
name
Definition: run_automated.py:229