MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node > Class Template Reference

#include <MueLu_HierarchyManager.hpp>

Inheritance diagram for MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >:
MueLu::HierarchyFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node > MueLu::BaseClass MueLu::VerboseObject MueLu::Describable Teuchos::VerboseObject< VerboseObject > Teuchos::Describable Teuchos::VerboseObjectBase Teuchos::LabeledObject MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node > MueLu::MLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node > MueLu::ParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >

Public Types

typedef std::map< std::string,
RCP< const FactoryBase > > 
FactoryMap
 

Public Member Functions

 HierarchyManager (int numDesiredLevel=MasterList::getDefault< int >("max levels"))
 
virtual ~HierarchyManager ()
 
void AddFactoryManager (int startLevel, int numDesiredLevel, RCP< FactoryManagerBase > manager)
 
RCP< FactoryManagerBaseGetFactoryManager (int levelID) const
 
size_t getNumFactoryManagers () const
 returns number of factory managers stored in levelManagers_ vector. More...
 
void CheckConfig ()
 
- Public Member Functions inherited from MueLu::HierarchyFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >
virtual ~HierarchyFactory ()
 Destructor. More...
 
- Public Member Functions inherited from MueLu::BaseClass
virtual ~BaseClass ()
 Destructor. More...
 
- Public Member Functions inherited from MueLu::VerboseObject
VerbLevel GetVerbLevel () const
 Get the verbosity level. More...
 
void SetVerbLevel (const VerbLevel verbLevel)
 Set the verbosity level of this object. More...
 
int GetProcRankVerbose () const
 Get proc rank used for printing. Do not use this information for any other purpose. More...
 
int SetProcRankVerbose (int procRank) const
 Set proc rank used for printing. More...
 
bool IsPrint (MsgType type, int thisProcRankOnly=-1) const
 Find out whether we need to print out information for a specific message type. More...
 
Teuchos::FancyOStreamGetOStream (MsgType type, int thisProcRankOnly=0) const
 Get an output stream for outputting the input message type. More...
 
Teuchos::FancyOStreamGetBlackHole () const
 
 VerboseObject ()
 
virtual ~VerboseObject ()
 Destructor. More...
 
- Public Member Functions inherited from Teuchos::VerboseObject< VerboseObject >
 VerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null)
 
virtual const VerboseObjectsetVerbLevel (const EVerbosityLevel verbLevel) const
 
virtual const VerboseObjectsetOverridingVerbLevel (const EVerbosityLevel verbLevel) const
 
virtual EVerbosityLevel getVerbLevel () const
 
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
RCP< const ParameterList
getValidVerboseObjectSublist ()
 
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
void 
setupVerboseObjectSublist (ParameterList *paramList)
 
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT
void 
readVerboseObjectSublist (ParameterList *paramList, RCP< FancyOStream > *oStream, EVerbosityLevel *verbLevel)
 
void readVerboseObjectSublist (ParameterList *paramList, VerboseObject< ObjectType > *verboseObject)
 
- Public Member Functions inherited from Teuchos::VerboseObjectBase
virtual ~VerboseObjectBase ()
 
 VerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null)
 
virtual const VerboseObjectBasesetOStream (const RCP< FancyOStream > &oStream) const
 
virtual const VerboseObjectBasesetOverridingOStream (const RCP< FancyOStream > &oStream) const
 
virtual VerboseObjectBasesetLinePrefix (const std::string &linePrefix)
 
virtual RCP< FancyOStreamgetOStream () const
 
virtual RCP< FancyOStreamgetOverridingOStream () const
 
virtual std::string getLinePrefix () const
 
virtual OSTab getOSTab (const int tabs=1, const std::string &linePrefix="") const
 
- Public Member Functions inherited from MueLu::Describable
virtual ~Describable ()
 Destructor. More...
 
virtual std::string ShortClassName () const
 Return the class name of the object, without template parameters and without namespace. More...
 
virtual void describe (Teuchos::FancyOStream &out_arg, const VerbLevel verbLevel=Default) const
 
virtual std::string description () const
 Return a simple one-line description of this object. More...
 
void describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
 Print the object with some verbosity level to an FancyOStream object. More...
 
- Public Member Functions inherited from Teuchos::Describable
void describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 
 LabeledObject ()
 
virtual ~LabeledObject ()
 
virtual void setObjectLabel (const std::string &objectLabel)
 
virtual std::string getObjectLabel () const
 
DescribableStreamManipulatorState describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default)
 
std::ostream & operator<< (std::ostream &os, const DescribableStreamManipulatorState &d)
 

Protected Member Functions

virtual void SetupOperator (Operator &) const
 Setup Matrix object. More...
 
virtual void SetupExtra (Hierarchy &) const
 Setup extra data. More...
 
Teuchos::RCP< FactoryManagerBaseLvlMngr (int levelID, int lastLevelID) const
 
- Protected Member Functions inherited from Teuchos::VerboseObject< VerboseObject >
void initializeVerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null)
 
- Protected Member Functions inherited from Teuchos::VerboseObjectBase
void initializeVerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null)
 
virtual void informUpdatedVerbosityState () const
 

Protected Attributes

int numDesiredLevel_
 
Xpetra::global_size_t maxCoarseSize_
 
MsgType verbosity_
 
bool doPRrebalance_
 
bool implicitTranspose_
 
int graphOutputLevel_
 
Teuchos::Array< int > matricesToPrint_
 
Teuchos::Array< int > prolongatorsToPrint_
 
Teuchos::Array< int > restrictorsToPrint_
 
Teuchos::Array< int > nullspaceToPrint_
 
Teuchos::Array< int > coordinatesToPrint_
 
Teuchos::Array< int > elementToNodeMapsToPrint_
 
std::map< int, std::vector
< keep_pair > > 
keep_
 

Private Types

typedef std::pair< std::string,
const FactoryBase * > 
keep_pair
 

Private Member Functions

void ExportDataSetKeepFlags (Hierarchy &H, const Teuchos::Array< int > &data, const std::string &name) const
 
template<class T >
void WriteData (Hierarchy &H, const Teuchos::Array< int > &data, const std::string &name) const
 
template<class T >
void WriteDataFC (Hierarchy &H, const Teuchos::Array< int > &data, const std::string &name, const std::string &ofname) const
 
template<class T >
void WriteFieldContainer (const std::string &fileName, T &fcont, const Map &colMap) const
 

Private Attributes

Array< RCP< FactoryManagerBase > > levelManagers_
 
virtual RCP< HierarchyCreateHierarchy () const
 Create an empty Hierarchy object. More...
 
virtual RCP< HierarchyCreateHierarchy (const std::string &label) const
 Create a labeled empty Hierarchy object. More...
 
virtual void SetupHierarchy (Hierarchy &H) const
 Setup Hierarchy object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MueLu::VerboseObject
static void SetMueLuOStream (const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream)
 
static Teuchos::RCP
< Teuchos::FancyOStream
GetMueLuOStream ()
 
static void SetDefaultVerbLevel (const VerbLevel defaultVerbLevel)
 Set the default (global) verbosity level. More...
 
static VerbLevel GetDefaultVerbLevel ()
 Get the default (global) verbosity level. More...
 
- Static Public Member Functions inherited from Teuchos::VerboseObject< VerboseObject >
static void setDefaultVerbLevel (const EVerbosityLevel defaultVerbLevel)
 
static EVerbosityLevel getDefaultVerbLevel ()
 
- Static Public Member Functions inherited from Teuchos::VerboseObjectBase
static void setDefaultOStream (const RCP< FancyOStream > &defaultOStream)
 
static RCP< FancyOStreamgetDefaultOStream ()
 
- Static Public Attributes inherited from Teuchos::Describable
static const EVerbosityLevel verbLevel_default
 

Detailed Description

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
class MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >

Definition at line 78 of file MueLu_HierarchyManager.hpp.

Member Typedef Documentation

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
typedef std::pair<std::string, const FactoryBase*> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::keep_pair
private

Definition at line 81 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
typedef std::map<std::string, RCP<const FactoryBase> > MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::FactoryMap

Definition at line 274 of file MueLu_HierarchyManager.hpp.

Constructor & Destructor Documentation

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::HierarchyManager ( int  numDesiredLevel = MasterList::getDefault<int>("max levels"))
inline

Definition at line 86 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
virtual MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::~HierarchyManager ( )
inlinevirtual

Definition at line 95 of file MueLu_HierarchyManager.hpp.

Member Function Documentation

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AddFactoryManager ( int  startLevel,
int  numDesiredLevel,
RCP< FactoryManagerBase manager 
)
inline

Definition at line 98 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
RCP<FactoryManagerBase> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::GetFactoryManager ( int  levelID) const
inline

Definition at line 108 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
size_t MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::getNumFactoryManagers ( ) const
inline

returns number of factory managers stored in levelManagers_ vector.

Definition at line 114 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::CheckConfig ( )
inline

Definition at line 119 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
virtual RCP<Hierarchy> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::CreateHierarchy ( ) const
inlinevirtual
template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
virtual RCP<Hierarchy> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::CreateHierarchy ( const std::string &  label) const
inlinevirtual

Create a labeled empty Hierarchy object.

Implements MueLu::HierarchyFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 130 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
virtual void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetupHierarchy ( Hierarchy H) const
inlinevirtual
template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
virtual void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetupOperator ( Operator &  ) const
inlineprotectedvirtual
template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
virtual void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetupExtra ( Hierarchy ) const
inlineprotectedvirtual

Setup extra data.

Definition at line 283 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::RCP<FactoryManagerBase> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::LvlMngr ( int  levelID,
int  lastLevelID 
) const
inlineprotected

Definition at line 288 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::ExportDataSetKeepFlags ( Hierarchy H,
const Teuchos::Array< int > &  data,
const std::string &  name 
) const
inlineprivate

Definition at line 323 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
template<class T >
void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::WriteData ( Hierarchy H,
const Teuchos::Array< int > &  data,
const std::string &  name 
) const
inlineprivate

Definition at line 335 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
template<class T >
void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::WriteDataFC ( Hierarchy H,
const Teuchos::Array< int > &  data,
const std::string &  name,
const std::string &  ofname 
) const
inlineprivate

Definition at line 362 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
template<class T >
void MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::WriteFieldContainer ( const std::string &  fileName,
T &  fcont,
const Map &  colMap 
) const
inlineprivate

Definition at line 383 of file MueLu_HierarchyManager.hpp.

Member Data Documentation

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
int MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::numDesiredLevel_
mutableprotected

Definition at line 306 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Xpetra::global_size_t MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::maxCoarseSize_
protected

Definition at line 307 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
MsgType MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::verbosity_
protected

Definition at line 308 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
bool MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::doPRrebalance_
protected

Definition at line 309 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
bool MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::implicitTranspose_
protected

Definition at line 310 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
int MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::graphOutputLevel_
protected

Definition at line 311 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::Array<int> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::matricesToPrint_
protected

Definition at line 312 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::Array<int> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::prolongatorsToPrint_
protected

Definition at line 313 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::Array<int> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::restrictorsToPrint_
protected

Definition at line 314 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::Array<int> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::nullspaceToPrint_
protected

Definition at line 315 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::Array<int> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::coordinatesToPrint_
protected

Definition at line 316 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Teuchos::Array<int> MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::elementToNodeMapsToPrint_
protected

Definition at line 317 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
std::map<int, std::vector<keep_pair> > MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::keep_
protected

Definition at line 319 of file MueLu_HierarchyManager.hpp.

template<class Scalar = double, class LocalOrdinal = int, class GlobalOrdinal = LocalOrdinal, class Node = KokkosClassic::DefaultNode::DefaultNodeType>
Array<RCP<FactoryManagerBase> > MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >::levelManagers_
private

Definition at line 410 of file MueLu_HierarchyManager.hpp.


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