![]() |
PRISMS-PF Manual
|
Simple struct for restart output. More...
#include <io_parameters.h>
Public Member Functions | |
| void | assign (dealii::ParameterHandler ¶meter_handler, unsigned int n_subsections=Numbers::default_subsections) override |
| Assign the parameters from file. | |
| void | assign (dealii::ParameterHandler ¶meter_handler, unsigned int n_increments, unsigned int n_subsections=Numbers::default_subsections) |
| Assign the parameters from file. | |
| void | validate (const std::vector< FieldAttributes > &field_attributes, const std::vector< SolveBlock > &solve_blocks) const override |
| Validate. | |
| bool | should_output (unsigned int increment) const |
| Whether a given increment should be outputted. | |
Public Member Functions inherited from ParameterBase | |
| ParameterBase ()=default | |
| virtual | ~ParameterBase ()=default |
| ParameterBase (const ParameterBase &)=default | |
| ParameterBase (ParameterBase &&)=default | |
| ParameterBase & | operator= (const ParameterBase &)=default |
| ParameterBase & | operator= (ParameterBase &&)=default |
Static Public Member Functions | |
| static void | declare (dealii::ParameterHandler ¶meter_handler, unsigned int n_subsections=Numbers::default_subsections) |
| Declare the parameters to be read from file. | |
Public Attributes | |
| bool | load_from_checkpoint = false |
| Whether to load from a checkpoint. | |
| std::string | folder = "solutions" |
| Folder for checkpoint output. | |
| std::string | file_name = "checkpoint" |
| Base filename for checkpoint output. | |
| std::set< unsigned int > | output_list = {0} |
| A list of output steps. | |
Simple struct for restart output.
| void RestartOutputParameters::assign | ( | dealii::ParameterHandler & | parameter_handler, |
| unsigned int | n_increments, | ||
| unsigned int | n_subsections = Numbers::default_subsections ) |
Assign the parameters from file.
|
overridevirtual |
|
static |
Declare the parameters to be read from file.
|
nodiscard |
Whether a given increment should be outputted.
|
overridevirtual |
Validate.
Implements ParameterBase.
| std::string RestartOutputParameters::file_name = "checkpoint" |
Base filename for checkpoint output.
This is the base filename for the outputs. For example, solution-*.vtu or file_name-*.vtu
| std::string RestartOutputParameters::folder = "solutions" |
Folder for checkpoint output.
Choosing this will give you your results like solutions/solution-*.vtu
| bool RestartOutputParameters::load_from_checkpoint = false |
Whether to load from a checkpoint.
TODO: This doesn't really belong here. Maybe it does? With loading from restart it overrides any other input conditions so it might not fit super well in the input section either. I don't see a good place to put it and it somewhat fits here so leaving it.
| std::set<unsigned int> RestartOutputParameters::output_list = {0} |
A list of output steps.
This is determined by a combination of the number of outputs and the total number of steps. When we reach a step contained in the list, we output.