|
ARTEMIS
|
#include <ReducedDiags.H>
Public Member Functions | |
| ReducedDiags (std::string rd_name) | |
| virtual | ~ReducedDiags ()=default |
| virtual void | InitData () |
| virtual void | LoadBalance () |
| virtual void | ComputeDiags (int step)=0 |
| virtual void | WriteToFile (int step) const |
| void | BackwardCompatibility () |
Public Attributes | |
| std::string | m_path = "./diags/reducedfiles/" |
| output path (default) More... | |
| std::string | m_extension = "txt" |
| output extension (default) More... | |
| std::string | m_rd_name |
| diags name More... | |
| utils::parser::IntervalsParser | m_intervals |
| output intervals More... | |
| int | m_IsNotRestart = 1 |
| check if it is a restart run More... | |
| std::string | m_sep = " " |
| separator in the output file More... | |
| std::vector< amrex::Real > | m_data |
| output data More... | |
Base class for reduced diagnostics. Each type of reduced diagnostics is implemented in a derived class, and must override the (pure virtual) function ComputeDiags.
| ReducedDiags::ReducedDiags | ( | std::string | rd_name | ) |
constructor
| [in] | rd_name | reduced diags names |
|
virtualdefault |
Virtual destructor for polymorphism
| void ReducedDiags::BackwardCompatibility | ( | ) |
This function queries deprecated input parameters and aborts the run if one of them is specified.
|
pure virtual |
function to compute diags
| [in] | step | current time step |
Implemented in RhoMaximum, RawEFieldReduction, RawBFieldReduction, ParticleNumber, ParticleMomentum, ParticleHistogram, ParticleExtrema, ParticleEnergy, LoadBalanceEfficiency, LoadBalanceCosts, FieldReduction, FieldProbe, FieldMomentum, FieldMaximum, FieldEnergy, BeamRelevant, and ChargeOnEB.
|
virtual |
function to initialize data after amr levels are initialized.
Reimplemented in FieldProbe.
|
virtual |
Redistribute parallel data structures during load balance
Reimplemented in FieldProbe.
|
virtual |
write to file function
| [in] | step | current time step |
Reimplemented in LoadBalanceCosts, and FieldProbe.
| std::vector<amrex::Real> ReducedDiags::m_data |
output data
| std::string ReducedDiags::m_extension = "txt" |
output extension (default)
| utils::parser::IntervalsParser ReducedDiags::m_intervals |
output intervals
| int ReducedDiags::m_IsNotRestart = 1 |
check if it is a restart run
| std::string ReducedDiags::m_path = "./diags/reducedfiles/" |
output path (default)
| std::string ReducedDiags::m_rd_name |
diags name
| std::string ReducedDiags::m_sep = " " |
separator in the output file