43 #ifndef IFPACK2_PARAMETERS_HPP 44 #define IFPACK2_PARAMETERS_HPP 46 #include "Ifpack2_ConfigDefs.hpp" 47 #include "Teuchos_ParameterList.hpp" 59 void getParameter(
const Teuchos::ParameterList& params,
const std::string& name, T& value)
61 if (params.isParameter(name)) {
62 if (params.isType<T>(name)) {
63 value = params.get<T>(name);
void getParameter(const Teuchos::ParameterList ¶ms, const std::string &name, T &value)
Set a value from a ParameterList if a parameter with the specified name exists.
Definition: Ifpack2_Parameters.hpp:59
Preconditioners and smoothers for Tpetra sparse matrices.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:72
void getValidParameters(Teuchos::ParameterList ¶ms)
Fills a list which contains all the parameters possibly used by Ifpack2.
Definition: Ifpack2_Parameters.cpp:50