Static Public Member Functions | |
static void | init (std::string const &in) |
initialize singleton object and global parameters | |
template<class T > | |
static std::optional< T > | get (std::string const &key) |
Get parameter-values from parameter-tree. More... | |
template<class T > | |
static void | get (std::string const &key, T &value) |
Get parameter-values from parameter-tree with default value. More... | |
template<class T > | |
static void | set (std::string const &key, T const &value) |
static int | getMsgInfo () |
Returns specified info level. | |
static void | printParameters () |
print all data in singleton to std::cout | |
static void | clearData () |
Static Protected Member Functions | |
static Initfile & | singlett () |
Return the singleton that contains the data. | |
static Dune::ParameterTree & | pt () |
Return the parameter-tree. | |
Protected Attributes | |
int | msgInfo_ = 0 |
int | paramInfo_ = 1 |
bool | breakOnMissingTag_ = false |
Dune::ParameterTree | pt_ |
ParameterTree to read/store parameter values. | |
|
inlinestatic |
Get parameter-values from parameter-tree.
Looks for the key
in the parameter-tree and returns the stored and parsed value if found and parsable.
May throw an exception if the value can not be parsed into type T
References Initfile::pt().
Referenced by AdaptInfo::AdaptInfo(), AdaptInstationary::AdaptInstationary(), BackupWriter< SystemVector >::BackupWriter(), DirectRunner< M, X, Y, Solver >::DirectRunner(), ESMarker< Grid >::ESMarker(), EstimatorMarker< Grid >::EstimatorMarker(), FileWriterBase::FileWriterBase(), GERSMarker< Grid >::GERSMarker(), GmshWriter< GV >::GmshWriter(), KrylovRunner< M, X, Y, ITLSolver >::KrylovRunner(), LinearSolver< Mat, VecX, VecY >::LinearSolver(), Marker< Grid >::Marker(), MSMarker< Grid >::MSMarker(), NewtonIteration< ProblemType >::NewtonIteration(), AdaptInfo::ScalContent::ScalContent(), UmfpackRunner< M, X, Y >::UmfpackRunner(), VTKWriter< GV, GF >::VTKWriter(), EstimatorMarker< Grid >::createMarker(), KrylovRunner< M, X, Y, ITLSolver >::createPrecon(), IterativeSolverCreator< M, X, Y, IterativeSolver >::createWithString(), Initfile::getInternalParameters(), Environment::infoLevel(), ISTLPreconCreatorBase< Traits >::init(), ISTLSolverCreatorBase< Traits >::init(), ISTLPreconCreator< tag::solver< Traits >, Traits >::init(), ISTLPreconCreator< tag::bjacobi, Traits >::init(), ISTLIterativeSolverCreatorBase< Traits >::init(), GMResSolverCreator< Solver, Traits >::init(), PCGSolverCreator< Solver, Traits >::init(), DirectSolverCreator< Solver, Traits >::init(), Environment::msgAllRanks(), and AdaptInfo::reset().
|
inlinestatic |
Get parameter-values from parameter-tree with default value.
initialized in init()-method. Cast the value to the desired type.
key | The tag to look for |
value | The default value and result. |
References Initfile::pt().