WarpX
|
#include <ReducedDiags.H>
Public Member Functions | |
ReducedDiags (const std::string &rd_name) | |
virtual | ~ReducedDiags ()=default |
ReducedDiags (const ReducedDiags &)=default | |
ReducedDiags & | operator= (const ReducedDiags &)=default |
ReducedDiags (ReducedDiags &&)=default | |
ReducedDiags & | operator= (ReducedDiags &&)=default |
virtual void | InitData () |
virtual void | LoadBalance () |
virtual void | ComputeDiags (int step)=0 |
virtual void | WriteToFile (int step) const |
void | BackwardCompatibility () const |
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... | |
bool | m_write_header = false |
check if header should be written More... | |
std::string | m_sep = " " |
separator in the output file More... | |
int | m_precision = 14 |
precision for data 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 | ( | const std::string & | rd_name | ) |
constructor
[in] | rd_name | reduced diags names |
|
virtualdefault |
Virtual destructor for polymorphism
|
default |
|
default |
void ReducedDiags::BackwardCompatibility | ( | ) | const |
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, ParticleNumber, ParticleMomentum, ParticleHistogram2D, ParticleHistogram, ParticleExtrema, ParticleEnergy, LoadBalanceEfficiency, LoadBalanceCosts, FieldReduction, FieldProbe, FieldMomentum, FieldMaximum, FieldEnergy, ColliderRelevant, ChargeOnEB, and BeamRelevant.
|
virtual |
function to initialize data after amr levels are initialized.
Reimplemented in FieldProbe.
|
virtual |
Redistribute parallel data structures during load balance
Reimplemented in FieldProbe.
|
default |
|
default |
|
virtual |
write to file function
[in] | step | current time step |
Reimplemented in FieldProbe, ParticleHistogram2D, and LoadBalanceCosts.
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
std::string ReducedDiags::m_path = "./diags/reducedfiles/" |
output path (default)
int ReducedDiags::m_precision = 14 |
precision for data in the output file
std::string ReducedDiags::m_rd_name |
diags name
std::string ReducedDiags::m_sep = " " |
separator in the output file
bool ReducedDiags::m_write_header = false |
check if header should be written