ug4
ug::AgglomeratingSolver< TAlgebra > Class Template Reference

#include <agglomerating_solver.h>

+ Inheritance diagram for ug::AgglomeratingSolver< TAlgebra >:

Public Types

typedef TAlgebra algebra_type
 
typedef AgglomeratingBase< IMatrixOperatorInverse< matrix_type, vector_type >, algebra_typebase_type
 Base type. More...
 
typedef TAlgebra::matrix_type matrix_type
 
typedef TAlgebra::vector_type vector_type
 
- Public Types inherited from ug::AgglomeratingBase< IMatrixOperatorInverse< TAlgebra::matrix_type, TAlgebra::vector_type >, TAlgebra >
typedef TAlgebra algebra_type
 
typedef TAlgebra::matrix_type matrix_type
 
typedef TAlgebra::vector_type vector_type
 
- Public Types inherited from ug::IMatrixOperatorInverse< TAlgebra::matrix_type, TAlgebra::vector_type >
typedef TAlgebra::vector_type codomain_function_type
 Range space. More...
 
typedef TAlgebra::vector_type domain_function_type
 Domain space. More...
 
typedef TAlgebra::matrix_type matrix_type
 Matrix type. More...
 
- Public Types inherited from ug::ILinearOperatorInverse< TAlgebra::vector_type, TAlgebra::vector_type >
typedef TAlgebra::vector_type codomain_function_type
 Range space. More...
 
typedef TAlgebra::vector_type domain_function_type
 Domain space. More...
 
- Public Types inherited from ug::ILinearIterator< X, Y >
typedef Y codomain_function_type
 Range space. More...
 
typedef X domain_function_type
 Domain space. More...
 

Public Member Functions

 AgglomeratingSolver (SmartPtr< ILinearOperatorInverse< vector_type, vector_type > > linOpInverse)
 
virtual bool apply_agglomerated (vector_type &x, const vector_type &b)
 
virtual std::string config_string () const
 returns information about configuration parameters More...
 
virtual bool init (SmartPtr< ILinearOperator< vector_type > > A)
 
virtual bool init (SmartPtr< ILinearOperator< vector_type > > A, const vector_type &u)
 
virtual bool init (SmartPtr< MatrixOperator< matrix_type, vector_type > > Op)
 
virtual bool init_agglomerated (SmartPtr< MatrixOperator< matrix_type, vector_type > > Op)
 
virtual const char * name () const
 returns the name of the operator inverse More...
 
virtual bool supports_parallel () const
 returns if parallel solving is supported More...
 
virtual ~AgglomeratingSolver ()
 
- Public Member Functions inherited from ug::AgglomeratingBase< IMatrixOperatorInverse< TAlgebra::matrix_type, TAlgebra::vector_type >, TAlgebra >
virtual bool apply (vector_type &x, const vector_type &b)
 
virtual bool apply_return_defect (vector_type &u, vector_type &f)
 
virtual bool apply_update_defect (vector_type &u, vector_type &f)
 
virtual bool base_init (SmartPtr< ILinearOperator< vector_type > > A)
 
bool base_init (SmartPtr< MatrixOperator< matrix_type, vector_type > > Op)
 Preprocess routine. More...
 
void broadcast_vector_from_one (vector_type &x, const vector_type &collectedX, ParallelStorageType type)
 
bool empty ()
 
void gather_vector_on_one (vector_type &collectedB, const vector_type &b, ParallelStorageType type)
 
bool i_am_root ()
 
void init_collected_vec (vector_type &collectedX)
 
bool init_mat (const matrix_type &A)
 
bool is_serial ()
 
virtual bool step (SmartPtr< MatrixOperator< matrix_type, vector_type > > pOp, vector_type &c, const vector_type &d)
 
virtual ~AgglomeratingBase ()
 
- Public Member Functions inherited from ug::IMatrixOperatorInverse< TAlgebra::matrix_type, TAlgebra::vector_type >
virtual bool init (SmartPtr< ILinearOperator< TAlgebra::vector_type, TAlgebra::vector_type > > A)
 initializes this inverse operator for a linear operator More...
 
virtual bool init (SmartPtr< ILinearOperator< TAlgebra::vector_type, TAlgebra::vector_type > > A, const TAlgebra::vector_type &u)
 initializes this inverse operator for a linear operator More...
 
virtual bool init (SmartPtr< MatrixOperator< TAlgebra::matrix_type, TAlgebra::vector_type, TAlgebra::vector_type > > A)=0
 initializes this inverse operator for a matrix-based operator More...
 
virtual ~IMatrixOperatorInverse ()
 virtual destructor More...
 
- Public Member Functions inherited from ug::ILinearOperatorInverse< TAlgebra::vector_type, TAlgebra::vector_type >
virtual SmartPtr< ILinearIterator< TAlgebra::vector_type, TAlgebra::vector_type > > clone ()
 clone More...
 
SmartPtr< IConvergenceCheck< TAlgebra::vector_type > > convergence_check ()
 returns the convergence check More...
 
ConstSmartPtr< IConvergenceCheck< TAlgebra::vector_type > > convergence_check () const
 returns the convergence check More...
 
number defect () const
 returns the current defect More...
 
 ILinearOperatorInverse ()
 constructor setting convergence check to (100, 1e-12, 1e-12, true) More...
 
 ILinearOperatorInverse (SmartPtr< IConvergenceCheck< TAlgebra::vector_type > > spConvCheck)
 Default constructor. More...
 
SmartPtr< ILinearOperator< TAlgebra::vector_type, TAlgebra::vector_type > > linear_operator ()
 returns the current Operator this Inverse Operator is initialized for More...
 
number reduction () const
 returns the current relative reduction More...
 
void set_convergence_check (SmartPtr< IConvergenceCheck< TAlgebra::vector_type > > spConvCheck)
 set the convergence check More...
 
virtual int standard_offset () const
 returns the standard offset for output More...
 
int step () const
 returns the current number of steps More...
 
virtual ~ILinearOperatorInverse ()
 virtual destructor More...
 
- Public Member Functions inherited from ug::ILinearIterator< X, Y >
virtual bool apply (Y &c, const X &d)=0
 compute new correction c = B*d More...
 
virtual bool apply_update_defect (Y &c, X &d)=0
 compute new correction c = B*d and update defect d := d - A*c More...
 
SmartPtr< IDamping< X, Y > > damping ()
 returns the scaling More...
 
 ILinearIterator ()
 constructor More...
 
 ILinearIterator (const ILinearIterator< X, Y > &parent)
 copy constructor More...
 
virtual bool init (SmartPtr< ILinearOperator< Y, X > > J, const Y &u)=0
 initialize for operator J(u) and linearization point u More...
 
virtual bool init (SmartPtr< ILinearOperator< Y, X > > L)=0
 initialize for linear operator L More...
 
void set_damp (number factor)
 sets the damping to a constant factor More...
 
void set_damp (SmartPtr< IDamping< X, Y > > spScaling)
 sets a scaling for the correction More...
 
virtual ~ILinearIterator ()
 virtual destructor More...
 

Protected Attributes

std::string m_name
 
SmartPtr< ILinearOperatorInverse< vector_type, vector_type > > m_pLinOpInverse
 
- Protected Attributes inherited from ug::AgglomeratingBase< IMatrixOperatorInverse< TAlgebra::matrix_type, TAlgebra::vector_type >, TAlgebra >
HorizontalAlgebraLayouts agglomerationLayout
 
vector_type collectedB
 
vector_type collectedX
 
bool m_bEmpty
 
bool m_bRoot
 
matrix_typem_pMatrix
 
SmartPtr< MatrixOperator< matrix_type, vector_type > > m_spCollectedOp
 
SmartPtr< AlgebraLayoutsm_spLocalAlgebraLayouts
 
- Protected Attributes inherited from ug::ILinearOperatorInverse< TAlgebra::vector_type, TAlgebra::vector_type >
SmartPtr< IConvergenceCheck< TAlgebra::vector_type > > m_spConvCheck
 smart pointer holding the convergence check More...
 
SmartPtr< ILinearOperator< TAlgebra::vector_type, TAlgebra::vector_type > > m_spLinearOperator
 Operator that is inverted by this Inverse Operator. More...
 
- Protected Attributes inherited from ug::ILinearIterator< X, Y >
SmartPtr< IDamping< X, Y > > m_spDamping
 the scaling More...
 

Member Typedef Documentation

◆ algebra_type

template<typename TAlgebra >
typedef TAlgebra ug::AgglomeratingSolver< TAlgebra >::algebra_type

◆ base_type

Base type.

◆ matrix_type

template<typename TAlgebra >
typedef TAlgebra::matrix_type ug::AgglomeratingSolver< TAlgebra >::matrix_type

◆ vector_type

template<typename TAlgebra >
typedef TAlgebra::vector_type ug::AgglomeratingSolver< TAlgebra >::vector_type

Constructor & Destructor Documentation

◆ AgglomeratingSolver()

◆ ~AgglomeratingSolver()

template<typename TAlgebra >
virtual ug::AgglomeratingSolver< TAlgebra >::~AgglomeratingSolver ( )
inlinevirtual

Member Function Documentation

◆ apply_agglomerated()

template<typename TAlgebra >
virtual bool ug::AgglomeratingSolver< TAlgebra >::apply_agglomerated ( vector_type x,
const vector_type b 
)
inlinevirtual

◆ config_string()

template<typename TAlgebra >
virtual std::string ug::AgglomeratingSolver< TAlgebra >::config_string ( ) const
inlinevirtual

returns information about configuration parameters

this should return necessary information about parameters and possibly calling config_string of subcomponents.

Returns
std::string necessary information about configuration parameters

Reimplemented from ug::ILinearOperatorInverse< TAlgebra::vector_type, TAlgebra::vector_type >.

References ug::AgglomeratingSolver< TAlgebra >::m_pLinOpInverse.

◆ init() [1/3]

template<typename TAlgebra >
virtual bool ug::AgglomeratingSolver< TAlgebra >::init ( SmartPtr< ILinearOperator< vector_type > >  A)
inlinevirtual

◆ init() [2/3]

template<typename TAlgebra >
virtual bool ug::AgglomeratingSolver< TAlgebra >::init ( SmartPtr< ILinearOperator< vector_type > >  A,
const vector_type u 
)
inlinevirtual

◆ init() [3/3]

template<typename TAlgebra >
virtual bool ug::AgglomeratingSolver< TAlgebra >::init ( SmartPtr< MatrixOperator< matrix_type, vector_type > >  Op)
inlinevirtual

◆ init_agglomerated()

◆ name()

template<typename TAlgebra >
virtual const char* ug::AgglomeratingSolver< TAlgebra >::name ( ) const
inlinevirtual

returns the name of the operator inverse

This method returns the name of the inverse operator. This function is typically needed, when the inverse operator is used inside of another and some debug output should be printed

Returns
const char* name of inverse operator

Implements ug::ILinearOperatorInverse< TAlgebra::vector_type, TAlgebra::vector_type >.

References ug::AgglomeratingSolver< TAlgebra >::m_name.

◆ supports_parallel()

template<typename TAlgebra >
virtual bool ug::AgglomeratingSolver< TAlgebra >::supports_parallel ( ) const
inlinevirtual

returns if parallel solving is supported

Implements ug::ILinearOperatorInverse< TAlgebra::vector_type, TAlgebra::vector_type >.

Member Data Documentation

◆ m_name

template<typename TAlgebra >
std::string ug::AgglomeratingSolver< TAlgebra >::m_name
protected

◆ m_pLinOpInverse


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