|
WarpX
|
#include <MultiReducedDiags.H>
Public Member Functions | |
| MultiReducedDiags () | |
| constructor | |
| void | InitData () |
| void | LoadBalance () |
| void | ComputeDiags (int step) |
| void | ComputeDiagsMidStep (int step) |
| void | WriteToFile (int step) |
| bool | DoDiags (int step) |
| void | WriteCheckpointData (std::string const &dir) |
| Loop over all ReducedDiags and call their WriteCheckpointData. | |
| void | ReadCheckpointData (std::string const &dir) |
| Loop over all ReducedDiags and call their ReadCheckpointData. | |
Public Attributes | |
| int | m_plot_rd = 0 |
| Bool: whether or not reduced diagnostics are activated. | |
| std::vector< std::string > | m_rd_names |
| names of reduced diagnostics | |
| std::vector< std::unique_ptr< ReducedDiags > > | m_multi_rd |
| m_multi_rd stores a pointer to each reduced diagnostics | |
This class holds multiple instances of ReducedDiagnostics, and contains general functions to initialize, compute, and write these diagnostics to file.
| MultiReducedDiags::MultiReducedDiags | ( | ) |
constructor
| void MultiReducedDiags::ComputeDiags | ( | int | step | ) |
Loop over all ReducedDiags and call their ComputeDiags
| [in] | step | current iteration time |
| void MultiReducedDiags::ComputeDiagsMidStep | ( | int | step | ) |
Loop over all ReducedDiags and call their ComputeDiagsMidStep
| [in] | step | current iteration time |
| bool MultiReducedDiags::DoDiags | ( | int | step | ) |
Check if any diagnostics will be done
| void MultiReducedDiags::InitData | ( | ) |
Loop over all ReducedDiags and call their InitData
| void MultiReducedDiags::LoadBalance | ( | ) |
Redistribute parallel data structures during load balance
| void MultiReducedDiags::ReadCheckpointData | ( | std::string const & | dir | ) |
Loop over all ReducedDiags and call their ReadCheckpointData.
| [in] | dir | checkpoint directory |
| void MultiReducedDiags::WriteCheckpointData | ( | std::string const & | dir | ) |
Loop over all ReducedDiags and call their WriteCheckpointData.
| [in] | dir | checkpoint directory |
| void MultiReducedDiags::WriteToFile | ( | int | step | ) |
Loop over all ReducedDiags and call their WriteToFile
| [in] | step | current iteration time |
| std::vector<std::unique_ptr<ReducedDiags> > MultiReducedDiags::m_multi_rd |
m_multi_rd stores a pointer to each reduced diagnostics
| int MultiReducedDiags::m_plot_rd = 0 |
Bool: whether or not reduced diagnostics are activated.
| std::vector<std::string> MultiReducedDiags::m_rd_names |
names of reduced diagnostics