33#ifndef __H__UG__LIB_DISC__OPERATOR__LINEAR_OPERATOR__SCHUR_COMPLEMENT_OPERATOR__
34#define __H__UG__LIB_DISC__OPERATOR__LINEAR_OPERATOR__SCHUR_COMPLEMENT_OPERATOR__
65template <
typename TAlgebra>
68 typename TAlgebra::vector_type>
86 SchurSlicingData::slice_desc_type_vector &sdv)
101 virtual const char*
name()
const {
return "My local Schur complement Solver";}
151 = op.template cast_dynamic<VectorDebugWritingObject<vector_type> >();
161 = op.template cast_dynamic<VectorDebugWritingObject<vector_type> >();
Definition smart_pointer.h:107
bool valid() const
returns true if the pointer is valid, false if not.
Definition smart_pointer.h:206
base class for all debug writer
Definition debug_writer.h:244
describes a linear mapping X->Y
Definition linear_operator.h:80
describes an inverse linear mapping X->Y
Definition linear_operator_inverse.h:80
Definition matrix_operator.h:49
virtual M & get_matrix()
Definition matrix_operator.h:74
Definition schur_complement_operator.h:69
SmartPtr< AlgebraDebugWriter< algebra_type > > m_spDebugWriterInner
Definition schur_complement_operator.h:184
SmartPtr< MatrixOperator< matrix_type, vector_type > > m_op[2][2]
Definition schur_complement_operator.h:179
SmartPtr< IDebugWriter< algebra_type > > m_spDebugWriter
Definition schur_complement_operator.h:186
void set_debug_dim()
Definition schur_complement_operator.cpp:401
virtual const char * name() const
name of solver
Definition schur_complement_operator.h:101
TAlgebra::vector_type vector_type
Definition schur_complement_operator.h:76
matrix_type & sub_matrix(int r, int c)
Definition schur_complement_operator.h:127
const SchurSlicingData m_slicing
Definition schur_complement_operator.h:171
SchurComplementOperator(SmartPtr< MatrixOperator< matrix_type, vector_type > > Alocal, SchurSlicingData::slice_desc_type_vector &sdv)
constructor
Definition schur_complement_operator.h:85
void compute_matrix(matrix_type &schur_matrix, double threshold=0.0)
Definition schur_complement_operator.cpp:330
virtual void apply(vector_type &f, const vector_type &u)
apply schur complement
Definition schur_complement_operator.cpp:177
virtual void apply_sub(vector_type &f, const vector_type &u)
Definition schur_complement_operator.cpp:277
void debug_compute_matrix()
Definition schur_complement_operator.cpp:294
SmartPtr< MatrixOperator< matrix_type, vector_type > > sub_operator(int r, int c)
Definition schur_complement_operator.h:130
SmartPtr< MatrixOperator< matrix_type, vector_type > > m_spOperator
Definition schur_complement_operator.h:168
void set_matrix(SmartPtr< MatrixOperator< matrix_type, vector_type > > A)
Definition schur_complement_operator.h:119
void set_inner_debug(SmartPtr< T > op)
Definition schur_complement_operator.h:147
virtual void init()
initializes the solver for operator A
Definition schur_complement_operator.cpp:97
const SchurSlicingData & slicing() const
Definition schur_complement_operator.h:136
TAlgebra algebra_type
Definition schur_complement_operator.h:73
void set_skeleton_debug(SmartPtr< T > op)
Definition schur_complement_operator.h:157
void init(const vector_type &u)
implementation of the operator for the solution dependent initialization.
Definition schur_complement_operator.h:105
void set_dirichlet_solver(SmartPtr< ILinearOperatorInverse< vector_type > > dirichletSolver)
sets a Dirichlet solver
Definition schur_complement_operator.h:123
virtual ~SchurComplementOperator()
Definition schur_complement_operator.h:98
SmartPtr< AlgebraDebugWriter< algebra_type > > m_spDebugWriterSkeleton
Definition schur_complement_operator.h:185
SmartPtr< ILinearOperatorInverse< vector_type > > m_spDirichletSolver
Definition schur_complement_operator.h:174
virtual void set_debug(SmartPtr< IDebugWriter< algebra_type > > spDebugWriter)
Definition schur_complement_operator.cpp:430
TAlgebra::matrix_type matrix_type
Definition schur_complement_operator.h:79
size_t sub_size(schur_slice_desc_type type)
Definition schur_complement_operator.h:133
int m_applyCnt
Definition schur_complement_operator.h:188
function util d3f check type(param, name, typ)
schur_slice_desc_type
Definition schur.h:63
SlicingData< SchurSliceDescVector, 2 > SchurSlicingData
Definition schur.h:66
SmartPtr< T, FreePolicy > make_sp(T *inst)
returns a SmartPtr for the passed raw pointer
Definition smart_pointer.h:839