47 #ifndef MUELU_ML2MUELUPARAMETERTRANSLATOR_HPP 48 #define MUELU_ML2MUELUPARAMETERTRANSLATOR_HPP 53 #include <Teuchos_ParameterList.hpp> 54 #include <Teuchos_XMLParameterListCoreHelpers.hpp> 97 Teuchos::RCP<Teuchos::ParameterList> paramList = Teuchos::getParametersFromXmlFile(xmlFileName);
131 s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
137 s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
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
Class that accepts ML-style parameters and builds a MueLu parameter list (easy input deck) ...
Namespace for MueLu classes and methods.
DASHPOS string(SUBSTRING ${CLASS}0 ${DASHPOS}CLASS_NAME) set(CONDITION_NAME"") set(CONDITION_NAME_END"") string(SUBSTRING $
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 ...
virtual ~ML2MueLuParameterTranslator()
Destructor.
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