Loading [MathJax]/extensions/tex2jax.js
ug4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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.
 
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.
 
typedef TAlgebra::vector_type domain_function_type
 Domain space.
 
typedef TAlgebra::matrix_type matrix_type
 Matrix type.
 
- Public Types inherited from ug::ILinearOperatorInverse< X, Y >
typedef Y codomain_function_type
 Range space.
 
typedef X domain_function_type
 Domain space.
 
- Public Types inherited from ug::ILinearIterator< X, Y >
typedef Y codomain_function_type
 Range space.
 
typedef X domain_function_type
 Domain space.
 

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
 
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
 
virtual bool supports_parallel () const
 returns if parallel solving is supported
 
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.
 
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 ()
 
virtual bool init_agglomerated (SmartPtr< MatrixOperator< matrix_type, vector_type > > Op)=0
 
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
 
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
 
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
 
virtual ~IMatrixOperatorInverse ()
 virtual destructor
 
- Public Member Functions inherited from ug::ILinearOperatorInverse< X, Y >
virtual bool apply (Y &u, const X &f)=0
 applies inverse operator, i.e. returns u = A^{-1} f
 
virtual bool apply_return_defect (Y &u, X &f)=0
 applies inverse operator, i.e. returns u = A^{-1} f and returns defect d := f - A*u
 
virtual bool apply_update_defect (Y &u, X &f)
 compute new correction c = B*d and update defect d := d - A*c
 
virtual SmartPtr< ILinearIterator< X, Y > > clone ()
 clone
 
SmartPtr< IConvergenceCheck< X > > convergence_check ()
 returns the convergence check
 
ConstSmartPtr< IConvergenceCheck< X > > convergence_check () const
 returns the convergence check
 
number defect () const
 returns the current defect
 
 ILinearOperatorInverse ()
 constructor setting convergence check to (100, 1e-12, 1e-12, true)
 
 ILinearOperatorInverse (SmartPtr< IConvergenceCheck< X > > spConvCheck)
 Default constructor.
 
virtual bool init (SmartPtr< ILinearOperator< Y, X > > J, const Y &u)
 initializes for the inverse for a linearized operator at linearization point u
 
virtual bool init (SmartPtr< ILinearOperator< Y, X > > L)
 initializes for the inverse for a linear operator
 
SmartPtr< ILinearOperator< Y, X > > linear_operator ()
 returns the current Operator this Inverse Operator is initialized for
 
number reduction () const
 returns the current relative reduction
 
void set_convergence_check (SmartPtr< IConvergenceCheck< X > > spConvCheck)
 set the convergence check
 
virtual int standard_offset () const
 returns the standard offset for output
 
int step () const
 returns the current number of steps
 
virtual ~ILinearOperatorInverse ()
 virtual destructor
 
- Public Member Functions inherited from ug::ILinearIterator< X, Y >
SmartPtr< IDamping< X, Y > > damping ()
 returns the scaling
 
 ILinearIterator ()
 constructor
 
 ILinearIterator (const ILinearIterator< X, Y > &parent)
 copy constructor
 
void set_damp (number factor)
 sets the damping to a constant factor
 
void set_damp (SmartPtr< IDamping< X, Y > > spScaling)
 sets a scaling for the correction
 
virtual ~ILinearIterator ()
 virtual destructor
 

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< X, Y >
SmartPtr< IConvergenceCheck< X > > m_spConvCheck
 smart pointer holding the convergence check
 
SmartPtr< ILinearOperator< Y, X > > m_spLinearOperator
 Operator that is inverted by this Inverse Operator.
 
- Protected Attributes inherited from ug::ILinearIterator< X, Y >
SmartPtr< IDamping< X, Y > > m_spDamping
 the scaling
 

Member Typedef Documentation

◆ algebra_type

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

◆ base_type

template<typename TAlgebra >
typedef AgglomeratingBase<IMatrixOperatorInverse<matrix_type,vector_type>, algebra_type > ug::AgglomeratingSolver< TAlgebra >::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< X, Y >.

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()

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

◆ 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< X, Y >.

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< X, Y >.

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: