WarpX
Loading...
Searching...
No Matches
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"
13
14#include <string>
15
19{
20public:
21
28 BoundaryScrapingDiagnostics (int i, const std::string& name, DiagTypes diag_type);
29
30private:
32 void ReadParameters ();
33
36
38 void Flush (int i_buffer, bool /* force_flush */) override;
46 bool DoDump (int step, int i_buffer, bool force_flush=false) override;
51 bool DoComputeAndPack (int step, bool force_flush=false) override;
56 void InitializeBufferData (int i_buffer, int lev, bool restart=false) override;
61 void InitializeFieldFunctors (int lev) override;
62
67 void InitializeParticleBuffer (const MultiParticleContainer& mpc) override;
68
69};
70#endif // WARPX_BOUNDARYSCRAPINGDIAGNOSTICS_H_
DiagTypes
Definition Diagnostics.H:25
void InitializeFieldFunctors(int lev) override
Definition BoundaryScrapingDiagnostics.cpp:73
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:116
void Flush(int i_buffer, bool) override
Flush data to file.
Definition BoundaryScrapingDiagnostics.cpp:126
BoundaryScrapingDiagnostics(int i, const std::string &name, DiagTypes diag_type)
Definition BoundaryScrapingDiagnostics.cpp:27
void InitializeParticleBuffer(const MultiParticleContainer &mpc) override
Definition BoundaryScrapingDiagnostics.cpp:89
utils::parser::IntervalsParser m_intervals
Definition BoundaryScrapingDiagnostics.H:35
void ReadParameters()
Definition BoundaryScrapingDiagnostics.cpp:34
void InitializeBufferData(int i_buffer, int lev, bool restart=false) override
Definition BoundaryScrapingDiagnostics.cpp:81
bool DoComputeAndPack(int step, bool force_flush=false) override
Definition BoundaryScrapingDiagnostics.cpp:110
Diagnostics(int i, std::string name, DiagTypes diag_type)
Definition Diagnostics.cpp:41
Definition MultiParticleContainer.H:68
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