|
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 () |
|
|
void | read (std::string const &fn, bool force=false) |
| Fill an parametr-tree from a file with filename fn.
|
|
void | write (std::string const &fn) |
|
void | getInternalParameters () |
| read standard values for output and information of parameter-values
|
|
|
static Initfile & | singlett () |
| Return the singleton that contains the data.
|
|
static Dune::ParameterTree & | pt () |
| Return the parameter-tree.
|
|
|
int | msgInfo_ = 0 |
|
int | paramInfo_ = 1 |
|
bool | breakOnMissingTag_ = false |
|
Dune::ParameterTree | pt_ |
| ParameterTree to read/store parameter values.
|
|
◆ get() [1/2]
static std::optional<T> get |
( |
std::string const & |
key | ) |
|
|
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(), ProblemStat< Traits >::clearFileWriter(), EstimatorMarker< Grid >::createMarker(), KrylovRunner< M, X, Y, ITLSolver >::createPrecon(), AMGPreconCreator< AMGSolver, Traits >::createPrecon(), SolverPrecon< M, X, Y >::Creator::createWithString(), IterativeSolverCreator< M, X, Y, IterativeSolver >::createWithString(), DirectRunner< M, X, Y, Solver >::DirectRunner(), ESMarker< Grid >::ESMarker(), EstimatorMarker< Grid >::EstimatorMarker(), FileWriterBase::FileWriterBase(), GERSMarker< Grid >::GERSMarker(), GmshWriter< GV >::GmshWriter(), Environment::infoLevel(), ISTLPreconCreatorBase< AMDiS::SeqSolverTraits >::init(), ISTLSolverCreatorBase< AMDiS::SolverTraits >::init(), ISTLIterativeSolverCreatorBase< Traits >::init(), ISTLPreconCreator< tag::solver< Traits >, Traits >::init(), GMResSolverCreator< Solver, Traits >::init(), ISTLPreconCreator< tag::bjacobi, Traits >::init(), PCGSolverCreator< Solver, Traits >::init(), DirectSolverCreator< Solver, Traits >::init(), KrylovRunner< M, X, Y, ITLSolver >::KrylovRunner(), LinearSolver< Mat, VecX, VecY >::LinearSolver(), Marker< Grid >::Marker(), Environment::msgAllRanks(), MSMarker< Grid >::MSMarker(), NewtonIteration< ProblemType >::NewtonIteration(), AdaptInfo::reset(), ProblemStat< Traits >::restore(), AdaptInfo::ScalContent::ScalContent(), ProblemStat< Traits >::solve(), UmfpackRunner< M, X, Y >::UmfpackRunner(), and VTKWriter< GV, GF >::VTKWriter().
◆ get() [2/2]
static void get |
( |
std::string const & |
key, |
|
|
T & |
value |
|
) |
| |
|
inlinestatic |
Get parameter-values from parameter-tree with default value.
initialized in init()-method. Cast the value to the desired type.
- Parameters
-
key | The tag to look for |
value | The default value and result. |
References Initfile::pt().
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/amdis/checkouts/latest/amdis/Initfile.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/amdis/checkouts/latest/amdis/Initfile.cpp