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"
12
14
15#include <string>
16
20{
21public:
22
29 BoundaryScrapingDiagnostics (int i, const std::string& name, DiagTypes diag_type);
30
31private:
33 void ReadParameters ();
34
37
39 void Flush (int i_buffer, bool /* force_flush */) override;
47 bool DoDump (int step, int i_buffer, bool force_flush=false) override;
52 bool DoComputeAndPack (int step, bool force_flush=false) override;
57 void InitializeBufferData (int i_buffer, int lev, bool restart=false) override;
62 void InitializeFieldFunctors (int lev) override;
63
68 void InitializeParticleBuffer (const MultiParticleContainer& mpc) override;
69
70};
71#endif // WARPX_BOUNDARYSCRAPINGDIAGNOSTICS_H_
DiagTypes
Definition Diagnostics.H:24
ablastr::utils::text::IntervalsParser m_intervals
Definition BoundaryScrapingDiagnostics.H:36
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
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:69
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:105