WarpX
ChargeOnEB.H
Go to the documentation of this file.
1 /* Copyright 2023 Remi Lehe
2  *
3  * This file is part of WarpX.
4  *
5  * License: BSD-3-Clause-LBNL
6  */
7 
8 #ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_CHARGEONEB_H_
9 #define WARPX_DIAGNOSTICS_REDUCEDDIAGS_CHARGEONEB_H_
10 
11 #include "ReducedDiags.H"
12 
13 #include <AMReX_Parser.H>
14 
15 #include <string>
16 
28 class ChargeOnEB : public ReducedDiags
29 {
30 public:
31 
36  ChargeOnEB (const std::string& rd_name);
37 
45  void ComputeDiags (int step) final;
46 
47 private:
49  std::unique_ptr<amrex::Parser> m_parser_weighting;
51  bool m_do_parser_weighting = false;
52 
53 };
54 
55 #endif
Definition: ChargeOnEB.H:29
bool m_do_parser_weighting
Whether the weighting is activated.
Definition: ChargeOnEB.H:51
std::unique_ptr< amrex::Parser > m_parser_weighting
Optional parser to add weight inside the integral.
Definition: ChargeOnEB.H:49
void ComputeDiags(int step) final
Definition: ChargeOnEB.cpp:85
ChargeOnEB(const std::string &rd_name)
Definition: ChargeOnEB.cpp:33
Definition: ReducedDiags.H:24