33 #ifndef __H__UG__LIB_DISC__OPERATOR__LINEAR_OPERATOR__SCHUR_COMPLEMENT_OPERATOR__
34 #define __H__UG__LIB_DISC__OPERATOR__LINEAR_OPERATOR__SCHUR_COMPLEMENT_OPERATOR__
65 template <
typename TAlgebra>
68 typename TAlgebra::vector_type>
100 virtual const char*
name()
const {
return "My local Schur complement Solver";}
150 = op.template cast_dynamic<VectorDebugWritingObject<vector_type> >();
160 = op.template cast_dynamic<VectorDebugWritingObject<vector_type> >();
Definition: smart_pointer.h:108
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
Wrapper for sequential matrices to handle them in parallel.
Definition: parallel_matrix.h:65
Definition: schur_complement_operator.h:69
SmartPtr< AlgebraDebugWriter< algebra_type > > m_spDebugWriterInner
Definition: schur_complement_operator.h:183
SmartPtr< MatrixOperator< matrix_type, vector_type > > m_op[2][2]
Definition: schur_complement_operator.h:178
SmartPtr< IDebugWriter< algebra_type > > m_spDebugWriter
Definition: schur_complement_operator.h:185
void set_debug_dim()
Definition: schur_complement_operator.cpp:401
TAlgebra::vector_type vector_type
Definition: schur_complement_operator.h:76
const SchurSlicingData m_slicing
Definition: schur_complement_operator.h:170
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 > > m_spOperator
Definition: schur_complement_operator.h:167
void set_matrix(SmartPtr< MatrixOperator< matrix_type, vector_type > > A)
Definition: schur_complement_operator.h:118
void set_inner_debug(SmartPtr< T > op)
Definition: schur_complement_operator.h:146
virtual void init()
initializes the solver for operator A
Definition: schur_complement_operator.cpp:97
TAlgebra algebra_type
Definition: schur_complement_operator.h:73
void set_skeleton_debug(SmartPtr< T > op)
Definition: schur_complement_operator.h:156
SmartPtr< MatrixOperator< matrix_type, vector_type > > sub_operator(int r, int c)
Definition: schur_complement_operator.h:129
const SchurSlicingData & slicing() const
Definition: schur_complement_operator.h:135
void init(const vector_type &u)
implementation of the operator for the solution dependent initialization.
Definition: schur_complement_operator.h:104
matrix_type & sub_matrix(int r, int c)
Definition: schur_complement_operator.h:126
void set_dirichlet_solver(SmartPtr< ILinearOperatorInverse< vector_type > > dirichletSolver)
sets a Dirichlet solver
Definition: schur_complement_operator.h:122
virtual ~SchurComplementOperator()
Definition: schur_complement_operator.h:97
SmartPtr< AlgebraDebugWriter< algebra_type > > m_spDebugWriterSkeleton
Definition: schur_complement_operator.h:184
SmartPtr< ILinearOperatorInverse< vector_type > > m_spDirichletSolver
Definition: schur_complement_operator.h:173
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:132
int m_applyCnt
Definition: schur_complement_operator.h:187
virtual const char * name() const
name of solver
Definition: schur_complement_operator.h:100
TVec slice_desc_type_vector
Definition: slicing.h:72
size_t get_num_elems(slice_desc_type type) const
Number of elements for each type.
Definition: slicing.h:247
CPUAlgebra::vector_type vector_type
schur_slice_desc_type
Definition: schur.h:63
SmartPtr< T, FreePolicy > make_sp(T *inst)
returns a SmartPtr for the passed raw pointer
Definition: smart_pointer.h:836