MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu::MasterList Class Reference

Static class that holds the complete list of valid MueLu parameters. More...

#include <MueLu_MasterList.hpp>

Static Public Member Functions

static Teuchos::RCP< const
Teuchos::ParameterList
List ()
 Return a "master" list of all valid parameters and their default values. More...
 
static Teuchos::RCP
< Teuchos::ParameterList
GetProblemSpecificList (std::string const &problemType)
 Return default parameter settings for the specified problem type. More...
 
template<typename T >
static const T & getDefault (const std::string &name)
 Returns default value on the "master" list for a parameter with the specified name and type. More...
 
static const
Teuchos::ParameterEntry
getEntry (const std::string &name)
 Returns default entry from the "master" list corresponding to the specified name. More...
 
template<typename T >
static std::string generateXMLParameterString (const std::string &name, T data)
 Create xml string for given MueLu parameter (easy xml input format) More...
 
static std::string ML2MueLu (const std::string &name)
 Translate ML parameter to corresponding MueLu parameter. More...
 
static std::string interpretParameterName (const std::string &name, const std::string &value)
 

Private Member Functions

 MasterList ()
 
 MasterList (const MasterList &)
 
MasterListoperator= (const MasterList &)
 

Static Private Attributes

static Teuchos::RCP
< Teuchos::ParameterList
masterList_ = Teuchos::null
 A ParameterList that holds all valid parameters and their default values. More...
 
static const std::string stringList_
 String equivalent of the masterList_. More...
 
static Teuchos::RCP
< Teuchos::ParameterList
problemSpecificList_ = Teuchos::null
 A ParameterList that holds all valid parameters and their default values for a particular problem type. More...
 
static std::string problemType_ = "unknown"
 The problem type associated with the current problem-specific ParameterList. More...
 
static std::map< std::string,
std::string > 
DefaultProblemTypeLists_
 Map of string equivalents of the problemSpecificList_. The first entry is the problem type, the second is the string equivalent. More...
 
static std::map< std::string,
std::string > 
ML2MueLuLists_
 Map of ML parameter strings to corresponding MueLu parametes. More...
 

Detailed Description

Static class that holds the complete list of valid MueLu parameters.

This class creates a ParameterList that is used to validate user-supplied ParameterLists. This same list is the source of default values if a parameter does not appear in the user ParameterList. This class also provides ParameterLists for certain common problem types, such as 2D and 3D isotropic Poisson.

Todo:
Add method to register user-defined problem type. This will need both string identifier and ParameterList (or string version of parameter list).

Definition at line 73 of file MueLu_MasterList.hpp.

Constructor & Destructor Documentation

MueLu::MasterList::MasterList ( )
private
MueLu::MasterList::MasterList ( const MasterList )
private

Member Function Documentation

Teuchos::RCP< const Teuchos::ParameterList > MueLu::MasterList::List ( )
static

Return a "master" list of all valid parameters and their default values.

Definition at line 55 of file MueLu_MasterList.cpp.

Teuchos::RCP< Teuchos::ParameterList > MueLu::MasterList::GetProblemSpecificList ( std::string const &  problemType)
static

Return default parameter settings for the specified problem type.

Definition at line 63 of file MueLu_MasterList.cpp.

template<typename T >
static const T& MueLu::MasterList::getDefault ( const std::string &  name)
inlinestatic

Returns default value on the "master" list for a parameter with the specified name and type.

Definition at line 82 of file MueLu_MasterList.hpp.

static const Teuchos::ParameterEntry& MueLu::MasterList::getEntry ( const std::string &  name)
inlinestatic

Returns default entry from the "master" list corresponding to the specified name.

Definition at line 87 of file MueLu_MasterList.hpp.

template<typename T >
static std::string MueLu::MasterList::generateXMLParameterString ( const std::string &  name,
data 
)
inlinestatic

Create xml string for given MueLu parameter (easy xml input format)

Note
: We should check whether template type T is the same as the expected parameter type in the parameter list

Definition at line 95 of file MueLu_MasterList.hpp.

static std::string MueLu::MasterList::ML2MueLu ( const std::string &  name)
inlinestatic

Translate ML parameter to corresponding MueLu parameter.

Definition at line 105 of file MueLu_MasterList.hpp.

std::string MueLu::MasterList::interpretParameterName ( const std::string &  name,
const std::string &  value 
)
static

Definition at line 77 of file MueLu_MasterList.cpp.

MasterList& MueLu::MasterList::operator= ( const MasterList )
private

Member Data Documentation

Teuchos::RCP< Teuchos::ParameterList > MueLu::MasterList::masterList_ = Teuchos::null
staticprivate

A ParameterList that holds all valid parameters and their default values.

Definition at line 122 of file MueLu_MasterList.hpp.

const std::string MueLu::MasterList::stringList_
staticprivate

String equivalent of the masterList_.

Definition at line 124 of file MueLu_MasterList.hpp.

Teuchos::RCP< Teuchos::ParameterList > MueLu::MasterList::problemSpecificList_ = Teuchos::null
staticprivate

A ParameterList that holds all valid parameters and their default values for a particular problem type.

Definition at line 126 of file MueLu_MasterList.hpp.

std::string MueLu::MasterList::problemType_ = "unknown"
staticprivate

The problem type associated with the current problem-specific ParameterList.

Definition at line 128 of file MueLu_MasterList.hpp.

std::map< std::string, std::string > MueLu::MasterList::DefaultProblemTypeLists_
staticprivate

Map of string equivalents of the problemSpecificList_. The first entry is the problem type, the second is the string equivalent.

Definition at line 130 of file MueLu_MasterList.hpp.

std::map< std::string, std::string > MueLu::MasterList::ML2MueLuLists_
staticprivate

Map of ML parameter strings to corresponding MueLu parametes.

Definition at line 132 of file MueLu_MasterList.hpp.


The documentation for this class was generated from the following files: