MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node > Class Template Reference

#include <MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp>

Inheritance diagram for MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >:
MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node > MueLu::HierarchyFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node > MueLu::BaseClass MueLu::VerboseObject MueLu::Describable

Handling of additional user-specific transfer factories

int nullspaceDim_
 nullspace can be embedded in the ML parameter list
 
double * nullspace_
 
bool bExportAggregates_
 export aggregates
 
std::vector< RCP< FactoryBase > > TransferFacts_
 
Array< RCP< FactoryManagerBase > > init_levelManagers_
 
int blksize_
 Matrix configuration storage.
 
void AddTransferFactory (const RCP< FactoryBase > &factory)
 Add transfer factory in the end of list of transfer factories for RAPFactory.
 
size_t NumTransferFactories () const
 Returns number of transfer factories.
 
void SetupInitHierarchy (Hierarchy &H) const
 
void AddInitFactoryManager (int startLevel, int numDesiredLevel, RCP< FactoryManagerBase > manager)
 internal routine to add a new factory manager used for the initialization phase
 
Teuchos::RCP< FactoryManagerBaseInitLvlMngr (int levelID, int lastLevelID) const
 
virtual void SetupOperator (Operator &Op) const
 

Constructors/Destructors.

 AdaptiveSaMLParameterListInterpreter ()
 Constructor.
 
 AdaptiveSaMLParameterListInterpreter (Teuchos::ParameterList &paramList, std::vector< RCP< FactoryBase > > factoryList=std::vector< RCP< FactoryBase > >(0))
 
 AdaptiveSaMLParameterListInterpreter (const std::string &xmlFileName, std::vector< RCP< FactoryBase > > factoryList=std::vector< RCP< FactoryBase > >(0))
 
virtual ~AdaptiveSaMLParameterListInterpreter ()
 Destructor.
 
void SetParameterList (const Teuchos::ParameterList &paramList)
 
virtual void SetupHierarchy (Hierarchy &H) const
 Setup Hierarchy object.
 

Additional Inherited Members

- Public Types inherited from MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >
typedef std::map< std::string, RCP< const FactoryBase > > FactoryMap
 
- Public Member Functions inherited from MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >
 HierarchyManager (int numDesiredLevel=MasterList::getDefault< int >("max levels"))
 Constructor.
 
virtual ~HierarchyManager ()=default
 Destructor.
 
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.
 
void CheckConfig ()
 
virtual RCP< HierarchyCreateHierarchy () const
 Create an empty Hierarchy object.
 
virtual RCP< HierarchyCreateHierarchy (const std::string &label) const
 Create a labeled empty Hierarchy object.
 
- Public Member Functions inherited from MueLu::HierarchyFactory< Scalar, LocalOrdinal, GlobalOrdinal, Node >
virtual ~HierarchyFactory ()
 Destructor.
 
- Public Member Functions inherited from MueLu::BaseClass
virtual ~BaseClass ()
 Destructor.
 
- Public Member Functions inherited from MueLu::VerboseObject
 VerboseObject ()
 
virtual ~VerboseObject ()
 Destructor.
 
VerbLevel GetVerbLevel () const
 Get the verbosity level.
 
void SetVerbLevel (const VerbLevel verbLevel)
 Set the verbosity level of this object.
 
int GetProcRankVerbose () const
 Get proc rank used for printing. Do not use this information for any other purpose.
 
int SetProcRankVerbose (int procRank) const
 Set proc rank used for printing.
 
bool IsPrint (MsgType type, int thisProcRankOnly=-1) const
 Find out whether we need to print out information for a specific message type.
 
Teuchos::FancyOStream & GetOStream (MsgType type, int thisProcRankOnly=0) const
 Get an output stream for outputting the input message type.
 
Teuchos::FancyOStream & GetBlackHole () const
 
- Public Member Functions inherited from MueLu::Describable
virtual ~Describable ()
 Destructor.
 
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.
 
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.
 
virtual std::string ShortClassName () const
 Return the class name of the object, without template parameters and without namespace.
 
- Static Public Member Functions inherited from MueLu::VerboseObject
static void SetDefaultVerbLevel (const VerbLevel defaultVerbLevel)
 Set the default (global) verbosity level.
 
static VerbLevel GetDefaultVerbLevel ()
 Get the default (global) verbosity level.
 
static void SetMueLuOStream (const Teuchos::RCP< Teuchos::FancyOStream > &mueluOStream)
 
static void SetMueLuOFileStream (const std::string &filename)
 
static Teuchos::RCP< Teuchos::FancyOStream > GetMueLuOStream ()
 
- Protected Member Functions inherited from MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >
virtual void SetupExtra (Hierarchy &) const
 Setup extra data.
 
Teuchos::RCP< FactoryManagerBaseLvlMngr (int levelID, int lastLevelID) const
 
- Protected Attributes inherited from MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >
int numDesiredLevel_
 
Xpetra::global_size_t maxCoarseSize_
 
MsgType verbosity_
 
bool doPRrebalance_
 
bool implicitTranspose_
 
bool fuseProlongationAndUpdate_
 
bool suppressNullspaceDimensionCheck_
 Flag to indicate whether the check of the nullspace dimension is suppressed.
 
int sizeOfMultiVectors_
 
int graphOutputLevel_
 -2 = no output, -1 = all levels
 
Teuchos::Array< int > nullspaceToPrint_
 Lists of entities to be exported (or saved)
 
Teuchos::Array< int > coordinatesToPrint_
 
Teuchos::Array< int > aggregatesToPrint_
 
Teuchos::Array< int > elementToNodeMapsToPrint_
 
Teuchos::Array< std::string > dataToSave_
 
std::map< std::string, Teuchos::Array< int > > matricesToPrint_
 
Teuchos::RCP< Teuchos::ParameterList > matvecParams_
 
std::map< int, std::vector< keep_pair > > keep_
 

Detailed Description

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
class MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >

Definition at line 77 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

Constructor & Destructor Documentation

◆ AdaptiveSaMLParameterListInterpreter() [1/3]

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AdaptiveSaMLParameterListInterpreter ( )
inline

Constructor.

Definition at line 87 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ AdaptiveSaMLParameterListInterpreter() [2/3]

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AdaptiveSaMLParameterListInterpreter ( Teuchos::ParameterList & paramList,
std::vector< RCP< FactoryBase > > factoryList = std::vector<RCP<FactoryBase> >(0) )

Constructor.

Parameters
paramListparameter list with ML parameters
nspVectorMultiVector with fine-level nullspace approximation
factoryListvector with RCP of FactoryBase objects

The factories in factoryList allow the user to add user-specific factories to the MueLu Hierarchy. The idea is to be able to add some factories that write out some debug information etc. which are not handled by the ML Parameter List itself. See information about the RAPFactory::AddTransferFactory method, too!

Definition at line 72 of file MueLu_AdaptiveSaMLParameterListInterpreter_def.hpp.

◆ AdaptiveSaMLParameterListInterpreter() [3/3]

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AdaptiveSaMLParameterListInterpreter ( const std::string & xmlFileName,
std::vector< RCP< FactoryBase > > factoryList = std::vector<RCP<FactoryBase> >(0) )

Constructor.

Parameters
xmlFileNamefile name for XML file with ML parameters
factoryListvector with RCP of FactoryBase objects

The factories in factoryList allow the user to add user-specific factories to the MueLu Hierarchy. The idea is to be able to add some factories that write out some debug information etc. which are not handled by the ML Parameter List itself. See information about the RAPFactory::AddTransferFactory method, too!

Definition at line 77 of file MueLu_AdaptiveSaMLParameterListInterpreter_def.hpp.

◆ ~AdaptiveSaMLParameterListInterpreter()

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
virtual MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::~AdaptiveSaMLParameterListInterpreter ( )
inlinevirtual

Destructor.

Definition at line 109 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

Member Function Documentation

◆ SetParameterList()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetParameterList ( const Teuchos::ParameterList & paramList)

◆ SetupHierarchy()

◆ AddTransferFactory()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AddTransferFactory ( const RCP< FactoryBase > & factory)

Add transfer factory in the end of list of transfer factories for RAPFactory.

This allows the user to add user-specific factories to the MueLu Hierarchy. The idea is to be able to add some factories that write out some debug information etc. which are not handled by the ML Parameter List itself. See information about the RAPFactory::AddTransferFactory method, too!

Definition at line 435 of file MueLu_AdaptiveSaMLParameterListInterpreter_def.hpp.

◆ NumTransferFactories()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
size_t MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::NumTransferFactories ( ) const

Returns number of transfer factories.

Definition at line 442 of file MueLu_AdaptiveSaMLParameterListInterpreter_def.hpp.

◆ SetupInitHierarchy()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetupInitHierarchy ( Hierarchy & H) const
private

build multigrid hierarchy for improving nullspace use ML settings that are also used for the final full multigrid hierarchy. In contrary to the final multigrid hierarchy use only nonsmoothed transfer operators (safe time of prolongator smoothing) and cheap level smoothers (no direct solver on coarsest level).

Definition at line 330 of file MueLu_AdaptiveSaMLParameterListInterpreter_def.hpp.

◆ AddInitFactoryManager()

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
void MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::AddInitFactoryManager ( int startLevel,
int numDesiredLevel,
RCP< FactoryManagerBase > manager )
inlineprivate

internal routine to add a new factory manager used for the initialization phase

Definition at line 152 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ InitLvlMngr()

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
Teuchos::RCP< FactoryManagerBase > MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::InitLvlMngr ( int levelID,
int lastLevelID ) const
inlineprivate

Used in SetupInitHierarchy() to access levelManagers_ Inputs i=-1 and i=size() are allowed to simplify calls to hierarchy->Setup()

Definition at line 163 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ SetupOperator()

template<class Scalar , class LocalOrdinal , class GlobalOrdinal , class Node >
void MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::SetupOperator ( Operator & Op) const
privatevirtual

Setup Operator object overloaded from HierarchyManager to set nDofsPerNode

Reimplemented from MueLu::HierarchyManager< Scalar, LocalOrdinal, GlobalOrdinal, Node >.

Definition at line 447 of file MueLu_AdaptiveSaMLParameterListInterpreter_def.hpp.

Member Data Documentation

◆ nullspaceDim_

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
int MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::nullspaceDim_
private

nullspace can be embedded in the ML parameter list

Definition at line 181 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ nullspace_

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
double* MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::nullspace_
private

◆ bExportAggregates_

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
bool MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::bExportAggregates_
private

export aggregates

if set to true an AggregationExportFactory is used to export aggregation information (default = false)

Definition at line 185 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ TransferFacts_

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
std::vector<RCP<FactoryBase> > MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::TransferFacts_
private

list of user-defined transfer Factories We use this vector to add some special user-given factories to the Hierarchy (RAPFactory) This way the user can extend the standard functionality of the MLParameterListInterpreter beyond the capabibilities of ML.

Definition at line 191 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ init_levelManagers_

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
Array<RCP<FactoryManagerBase> > MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::init_levelManagers_
private

list of levelManagers for adaptive smoothed aggregation initialization phase

Definition at line 195 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.

◆ blksize_

template<class Scalar = DefaultScalar, class LocalOrdinal = DefaultLocalOrdinal, class GlobalOrdinal = DefaultGlobalOrdinal, class Node = DefaultNode>
int MueLu::AdaptiveSaMLParameterListInterpreter< Scalar, LocalOrdinal, GlobalOrdinal, Node >::blksize_
private

Matrix configuration storage.

Definition at line 204 of file MueLu_AdaptiveSaMLParameterListInterpreter_decl.hpp.


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