![]() |
PRISMS-PF Manual
|
Struct that holds miscellaneous parameters. More...
#include <miscellaneous_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 | validate (const std::vector< FieldAttributes > &field_attributes, const std::vector< SolveBlock > &solve_blocks) const override |
| Validate. | |
| void | set_random_seed (const unsigned int &_random_seed) |
| Set the random seed and initialize the RNG. | |
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 | |
| unsigned int | random_seed = 2025 |
| RNGEngine | rng {random_seed} |
Struct that holds miscellaneous parameters.
|
overridevirtual |
Assign the parameters from file.
Implements ParameterBase.
|
static |
Declare the parameters to be read from file.
| void MiscellaneousParameters::set_random_seed | ( | const unsigned int & | _random_seed | ) |
Set the random seed and initialize the RNG.
NOTE: When using this method to set the RNG, the MPI process number is added to the random seed to avoid correlated events between processors. This means that to reproduce the same results as someone else you need both the number of MPI processes and the random seed.
If you would like to change the default behavior you can override the rng manually.
|
overridevirtual |
Validate.
Implements ParameterBase.
| unsigned int MiscellaneousParameters::random_seed = 2025 |
|
mutable |