WarpX
Loading...
Searching...
No Matches
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
29{
30public:
31
36 ChargeOnEB (const std::string& rd_name);
37
45 void ComputeDiags (int step) final;
46
47private:
49 std::unique_ptr<amrex::Parser> m_parser_weighting;
52
53};
54
55#endif
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:90
ChargeOnEB(const std::string &rd_name)
Definition ChargeOnEB.cpp:35
ReducedDiags(const std::string &rd_name)
Definition ReducedDiags.cpp:26