33 #ifndef __H__UG__LIB_DISC__SPATIAL_DISC__ASS_TUNER__
34 #define __H__UG__LIB_DISC__SPATIAL_DISC__ASS_TUNER__
43 template <
typename TDomain,
typename TAlgebra>
44 class IDomainConstraint;
63 template <
typename TAlgebra>
88 template <
typename TAlgebra>
126 m_pMapper->add_local_vec_to_global(vec, lvec, dd);
135 m_pMapper->add_local_mat_to_global(mat, lmat, dd);
144 m_pMapper->modify_LocalSol(vecMod, lvec, dd);
225 template <
typename TElem>
232 template <
typename TElem>
Definition: smart_pointer.h:296
The AssemblingTuner class combines tools to adapt the assembling routine.
Definition: ass_tuner.h:90
bool m_bForceRegGrid
forces the assembling to regard the grid as regular
Definition: ass_tuner.h:280
int m_ConstraintTypesEnabled
enables the constraints
Definition: ass_tuner.h:287
void disable_single_index_assembling()
sets an index for which the assembling should be carried out
Definition: ass_tuner.h:176
void set_single_index_assembling(const size_t index)
Definition: ass_tuner.h:177
void add_local_mat_to_global(matrix_type &mat, const LocalMatrix &lmat, ConstSmartPtr< DoFDistribution > dd) const
Definition: ass_tuner.h:131
void disable_clear_on_resize()
Definition: ass_tuner.h:243
void set_dirichlet_val(vector_type &vec, const DoFIndex &ind, const double val) const
Definition: ass_tuner_impl.h:134
bool m_bModifySolutionImplemented
Definition: ass_tuner.h:284
bool regular_grid_forced() const
returns if assembling is to considered as regular grid
Definition: ass_tuner.h:197
LocalToGlobalMapper< TAlgebra > m_defaultMapper
default LocalToGlobalMapper
Definition: ass_tuner.h:264
virtual ~AssemblingTuner()
destructor
Definition: ass_tuner.h:113
void set_marker(BoolMarker *mark=NULL)
sets a marker to exclude elements from assembling
Definition: ass_tuner.h:154
AssemblingTuner()
constructor
Definition: ass_tuner.h:106
virtual void set_force_regular_grid(bool bForce)
forces the assembling to consider the grid as regular
Definition: ass_tuner.h:194
void resize(ConstSmartPtr< DoFDistribution > dd, vector_type &vec) const
resize functions used in assemble funcs
Definition: ass_tuner_impl.h:41
algebra_type::vector_type vector_type
Type of algebra vector.
Definition: ass_tuner.h:99
ILocalToGlobalMapper< TAlgebra > * m_pMapper
LocalToGlobalMapper.
Definition: ass_tuner.h:267
bool m_bSingleAssIndex
object for DoFindex-wise assemble routine
Definition: ass_tuner.h:276
TAlgebra algebra_type
Algebra type.
Definition: ass_tuner.h:93
vector_type::value_type value_type
Type of algebra value.
Definition: ass_tuner.h:102
void enable_elem_discs(int bEnableTypes)
enables elem discs
Definition: ass_tuner.h:211
algebra_type::matrix_type matrix_type
Type of algebra matrix.
Definition: ass_tuner.h:96
bool element_used(TElem *elem) const
returns if element is to be used in assembling
Definition: ass_tuner_impl.h:85
Selector * m_pSelector
selector used to set a list of elements for the assembling
Definition: ass_tuner.h:273
void set_mapping(ILocalToGlobalMapper< TAlgebra > *pMapper=NULL)
set local to global mapping
Definition: ass_tuner.h:116
bool m_bMatrixIsConst
disables matrix assembling if set to false
Definition: ass_tuner.h:293
int enabled_elem_discs() const
returns flags of enabled elem discs
Definition: ass_tuner.h:214
int enabled_constraints() const
returns flags of enabled constraints
Definition: ass_tuner.h:204
void set_matrix_structure_is_const(bool b)
Definition: ass_tuner.h:253
void set_matrix_is_const(bool bCh)
Definition: ass_tuner.h:251
bool matrix_is_const() const
Definition: ass_tuner.h:260
BoolMarker * m_pBoolMarker
marker used to skip elements
Definition: ass_tuner.h:270
bool constraint_type_enabled(int type) const
returns if constraint type enabled
Definition: ass_tuner.h:207
void modify_LocalSol(LocalVector &vecMod, const LocalVector &lvec, ConstSmartPtr< DoFDistribution > dd) const
Definition: ass_tuner.h:140
bool m_bClearOnResize
disables clearing of vector/matrix on resize
Definition: ass_tuner.h:299
void enable_modify_solution(bool bEnable)
enables the usage of modify solution
Definition: ass_tuner.h:187
void add_local_vec_to_global(vector_type &vec, const LocalVector &lvec, ConstSmartPtr< DoFDistribution > dd) const
LocalToGlobalMapper-function calls.
Definition: ass_tuner.h:122
void enable_constraints(int bEnableTypes)
enables constraints
Definition: ass_tuner.h:201
bool m_bMatrixStructureIsConst
keeps matrix structure from last call if set to true
Definition: ass_tuner.h:296
void set_dirichlet_row(matrix_type &mat, const DoFIndex &ind) const
Definition: ass_tuner_impl.h:114
size_t m_SingleAssIndex
Definition: ass_tuner.h:277
void set_selector(Selector *sel=NULL)
sets a selector of elements for assembling
Definition: ass_tuner.h:166
bool modify_solution_enabled() const
checks whether the assemble index is set or not
Definition: ass_tuner.h:190
bool selected_elements_used() const
returns if only selected elements used for assembling
Definition: ass_tuner.h:229
bool single_index_assembling_enabled() const
checks whether the assemble DoFindex is set or not
Definition: ass_tuner.h:183
void collect_selected_elements(std::vector< TElem * > &vElem, ConstSmartPtr< DoFDistribution > dd, int si) const
gets the element iterator from the Selector
Definition: ass_tuner_impl.h:96
bool elem_disc_type_enabled(int type) const
returns if elem disc type enabled
Definition: ass_tuner.h:217
int m_ElemTypesEnabled
enables the constraints
Definition: ass_tuner.h:290
Allows to mark elements.
Definition: bool_marker.h:64
interface for definition of special LocalToGlobal mappings
Definition: local_to_global_mapper.h:50
Definition: local_algebra.h:422
Definition: ass_tuner.h:65
algebra_type::vector_type vector_type
Type of algebra vector.
Definition: ass_tuner.h:74
TAlgebra algebra_type
Algebra type.
Definition: ass_tuner.h:68
algebra_type::matrix_type matrix_type
Type of algebra matrix.
Definition: ass_tuner.h:71
void add_local_mat_to_global(matrix_type &mat, const LocalMatrix &lmat) const
adds a local matrix to the global one
Definition: ass_tuner.h:83
void add_local_vec_to_global(vector_type &vec, const LocalVector &lvec) const
adds a local vector to the global one
Definition: ass_tuner.h:79
Definition: local_algebra.h:198
Definition: multi_index.h:50
Wrapper for sequential matrices to handle them in parallel.
Definition: parallel_matrix.h:65
specialization of ISelector for a grid of class Grid.
Definition: selector_grid.h:96
CPUAlgebra::vector_type vector_type
ConstraintType
Types of constraint.
Definition: ass_tuner.h:53
@ CT_DIRICHLET
Definition: ass_tuner.h:59
@ CT_HANGING
Definition: ass_tuner.h:57
@ CT_ALL
Definition: ass_tuner.h:60
@ CT_MAY_DEPEND_ON_HANGING
Definition: ass_tuner.h:56
@ CT_ASSEMBLED
Definition: ass_tuner.h:55
@ CT_CONSTRAINTS
Definition: ass_tuner.h:58
@ EDT_ALL
Definition: elem_disc_interface.h:64
@ CT_NONE
Definition: ass_tuner.h:54
void AddLocalVector(TVector &vec, const LocalVector &lvec)
Definition: local_algebra.h:753
void AddLocalMatrixToGlobal(TMatrix &mat, const LocalMatrix &lmat)
Definition: local_algebra.h:767
T value_type
Definition: sparsematrix_interface.h:2