WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Diagnostics
ReducedDiags
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
explicit
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
AMReX_Parser.H
ReducedDiags.H
ChargeOnEB::m_do_parser_weighting
bool m_do_parser_weighting
Whether the weighting is activated.
Definition
ChargeOnEB.H:51
ChargeOnEB::m_parser_weighting
std::unique_ptr< amrex::Parser > m_parser_weighting
Optional parser to add weight inside the integral.
Definition
ChargeOnEB.H:49
ChargeOnEB::ComputeDiags
void ComputeDiags(int step) final
Definition
ChargeOnEB.cpp:90
ChargeOnEB::ChargeOnEB
ChargeOnEB(const std::string &rd_name)
Definition
ChargeOnEB.cpp:35
ReducedDiags::ReducedDiags
ReducedDiags(const std::string &rd_name)
Definition
ReducedDiags.cpp:27
Generated by
1.17.0