10 #ifndef MUELU_ML2MUELUPARAMETERTRANSLATOR_HPP
11 #define MUELU_ML2MUELUPARAMETERTRANSLATOR_HPP
61 static std::string
translate(
const std::string& xmlFileName,
const std::string& defaultVals =
"") {
94 int* options = 0,
double* params = 0,
const bool OverWrite =
true);
100 bool Overwrite =
true);
106 bool Overwrite =
true);
112 bool Overwrite =
true);
118 bool Overwrite =
true);
124 bool Overwrite =
true);
130 bool Overwrite =
true);
136 bool Overwrite =
true);
142 bool Overwrite =
true);
173 static inline std::string&
ltrim(std::string& s) {
174 s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](
int c) {
return !std::isspace(c); }));
179 static inline std::string&
rtrim(std::string& s) {
180 s.erase(std::find_if(s.rbegin(), s.rend(), [](
int c) {
return !std::isspace(c); }).base(), s.end());
185 static inline std::string&
trim(std::string& s) {
static std::string SetParameterList(const Teuchos::ParameterList ¶mList_in, const std::string &defaultVals)
: Interpret parameter list
static std::string translate(const std::string &xmlFileName, const std::string &defaultVals="")
: Translate ML parameters to MueLu parameter XML string
static int SetDefaultsMaxwell(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets default parameters for the eddy current equations equations.
static int SetDefaultsClassicalAMG(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets defaults for classical amg.
static int SetDefaultsNSSA(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets defaults for energy minimization preconditioning for nonsymmetric problems.
static int SetDefaultsSA(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets default parameters for classical smoothed aggregation.
Class that accepts ML-style parameters and builds a MueLu parameter list (easy input deck) ...
static int SetDefaultsDD_3Levels(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets default parameters for aggregation-based 3-level domain decomposition preconditioners.
ML2MueLuParameterTranslator()
Constructor.
static std::string GetSmootherFactory(const Teuchos::ParameterList ¶mList, Teuchos::ParameterList &adaptingParamList, const std::string &pname, const std::string &value)
: Helper function which translates ML smoother/solver paramters to MueLu XML string ...
static int SetDefaults(std::string ProblemType, Teuchos::ParameterList &List, int *options=0, double *params=0, const bool OverWrite=true)
Sets ML's (not MueLu's) default parameters for aggregation-based preconditioners. ...
static int SetDefaultsDD_LU(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets default parameters for aggregation-based 2-level domain decomposition preconditioners, using LU on each subdomain.
static int SetDefaultsDD(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets default parameters for aggregation-based 2-level domain decomposition preconditioners.
virtual ~ML2MueLuParameterTranslator()
Destructor.
static int SetDefaultsDD_3Levels_LU(Teuchos::ParameterList &List, Teuchos::RCP< std::vector< int > > &options, Teuchos::RCP< std::vector< double > > ¶ms, bool Overwrite=true)
Sets default parameters for aggregation-based 3-level domain decomposition preconditioners with LU...
static int SetDefaultsRefMaxwell(Teuchos::ParameterList &inList, bool OverWrite=true)
Sets defaults for RefMaxwell / Maxwell2.
static std::string & ltrim(std::string &s)
static std::string & rtrim(std::string &s)
static std::string & trim(std::string &s)
static std::string translate(Teuchos::ParameterList ¶mList, const std::string &defaultVals="")
: Translate ML parameters to MueLu parameter XML string