ug4
|
Abstract definition for subspace V_k (based on DoFIndex) More...
#include <sequential_subspace_correction.h>
Public Types | |
typedef TAlgebra | algebra_type |
Algebra type. More... | |
typedef std::vector< DoFIndex > | index_vector |
Local data. More... | |
typedef TAlgebra::matrix_type | matrix_type |
Matrix type. More... | |
typedef DenseMatrix< VariableArray2< number > > | matrix_type_local |
typedef TAlgebra::vector_type | vector_type |
Vector type. More... | |
typedef DenseVector< VariableArray1< number > > | vector_type_local |
Public Types inherited from ug::ILocalSubspace< TDomain, TAlgebra, TObject > | |
typedef TAlgebra | algebra_type |
Algebra type. More... | |
typedef GridFunction< TDomain, TAlgebra > | grid_function_type |
Grid function type. More... | |
typedef TAlgebra::matrix_type | matrix_type |
Matrix type. More... | |
typedef DenseMatrix< VariableArray2< number > > | matrix_type_local |
typedef TAlgebra::vector_type | vector_type |
Vector type. More... | |
typedef DenseVector< VariableArray1< number > > | vector_type_local |
Public Member Functions | |
bool | check (void *obj) const |
virtual void | extract_matrix (const matrix_type &A) |
Extract matrix (on local index set) More... | |
virtual void | extract_rhs (const vector_type &d) |
Extract rhs (on local index set) for parallel subspace correction. More... | |
virtual void | extract_rhs (const vector_type &d, const matrix_type &A, const vector_type &c) |
Extract rhs (on local index set) for sequential subspace correction. More... | |
virtual void | init (TObject *, const vector_type &)=0 |
Extract local data (based on group obj) More... | |
virtual size_t | size () |
virtual void | update_solution (vector_type &u, double omega=1.0) |
u = u + ck More... | |
virtual | ~LocalDoFSubspace () |
virtual DTOR More... | |
Public Member Functions inherited from ug::ILocalSubspace< TDomain, TAlgebra, TObject > | |
virtual bool | preprocess (const vector_type &c) |
Called once. More... | |
virtual | ~ILocalSubspace () |
virtual DTOR More... | |
Protected Attributes | |
matrix_type_local | m_Aloc |
vector_type_local | m_dloc |
vector_type_local | m_uloc |
std::vector< DoFIndex > | m_vInd |
Algebraic indices. More... | |
Abstract definition for subspace V_k (based on DoFIndex)
typedef TAlgebra ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::algebra_type |
Algebra type.
typedef std::vector<DoFIndex> ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::index_vector |
Local data.
typedef TAlgebra::matrix_type ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::matrix_type |
Matrix type.
typedef DenseMatrix< VariableArray2<number> > ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::matrix_type_local |
typedef TAlgebra::vector_type ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::vector_type |
Vector type.
typedef DenseVector< VariableArray1<number> > ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::vector_type_local |
|
inlinevirtual |
virtual DTOR
|
inline |
|
inlinevirtual |
Extract matrix (on local index set)
Implements ug::ILocalSubspace< TDomain, TAlgebra, TObject >.
References ug::DoFRef(), ug::DenseMatrix< TStorage >::entry(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_Aloc, ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_vInd, ug::VariableArray2< T, T_ordering >::resize(), and ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::size().
|
inlinevirtual |
Extract rhs (on local index set) for parallel subspace correction.
Implements ug::ILocalSubspace< TDomain, TAlgebra, TObject >.
References ug::DoFRef(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_dloc, ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_vInd, ug::VariableArray1< T >::resize(), and ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::size().
|
inlinevirtual |
Extract rhs (on local index set) for sequential subspace correction.
Implements ug::ILocalSubspace< TDomain, TAlgebra, TObject >.
References ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_dloc, ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_vInd, ug::MatMultAdd(), ug::VariableArray1< T >::resize(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::size(), and ug::DenseVector< TStorage >::subassign().
|
pure virtual |
Extract local data (based on group obj)
Implements ug::ILocalSubspace< TDomain, TAlgebra, TObject >.
Implemented in ug::VertexCenteredVankaSubspace< TDomain, TAlgebra >.
|
inlinevirtual |
Reimplemented from ug::ILocalSubspace< TDomain, TAlgebra, TObject >.
References ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_vInd.
Referenced by ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::extract_matrix(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::extract_rhs(), and ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::update_solution().
|
inlinevirtual |
u = u + ck
Implements ug::ILocalSubspace< TDomain, TAlgebra, TObject >.
References ug::DoFRef(), ug::InverseMatMult(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_Aloc, ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_dloc, ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_uloc, ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::m_vInd, omega, ug::VariableArray1< T >::resize(), and ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::size().
|
protected |
|
protected |
|
protected |
|
protected |
Algebraic indices.
Referenced by ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::extract_matrix(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::extract_rhs(), ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::size(), and ug::LocalDoFSubspace< TDomain, TAlgebra, TObject >::update_solution().