33 #ifndef __H__UG__LIB_GRID__PARALLELIZATION__UTIL__PARTITION_WEIGHTING_CALLBACKS__
34 #define __H__UG__LIB_GRID__PARALLELIZATION__UTIL__PARTITION_WEIGHTING_CALLBACKS__
71 template <
class TElem>
75 UG_THROW(
"Subset handler must be assigned to InterSubsetPartitionWeighting before it is used!");
115 template <
class TElem>
119 UG_THROW(
"Subset handler must be assigned to InterSubsetPartitionWeighting before it is used!");
124 for (
size_t i = 0; i <
m_vsi1.size(); i++)
127 && this->m_sh->get_subset_index(e2) ==
m_vsi2[i])
175 template <
class TElem>
179 UG_THROW(
"Subset handler must be assigned to InterSubsetPartitionWeighting before it is used!")
188 for (
size_t i = 0; i < vl1.size(); i++)
190 for (
size_t j = 0; j <
m_vSi.size(); j++)
197 for (
size_t k = 0; k < vl2.size(); k++)
199 if (vl1[i] == vl2[k])
Base-class for edges.
Definition: grid_base_objects.h:397
Faces are 2-dimensional objects.
Definition: grid_base_objects.h:510
void associated_elements(traits< Vertex >::secure_container &elemsOut, TElem *e)
Puts all elements of type TAss which are contained in 'e' or which contain 'e' into elemsOut.
Definition: grid_impl.hpp:466
Grid * grid() const
returns a pointer to the grid on which the subset-handler works.
Definition: subset_handler_interface.cpp:304
int get_subset_index(GridObject *elem) const
Definition: subset_handler_interface.cpp:560
Definition: partition_weighting_callbacks.h:97
void set_inter_subset_weight(int si1, int si2, int weight)
Definition: partition_weighting_callbacks.h:103
int weigh(TElem *e1, TElem *e2)
Definition: partition_weighting_callbacks.h:116
std::vector< int > m_vsi1
Definition: partition_weighting_callbacks.h:138
InterSubsetPartitionWeighting()
Definition: partition_weighting_callbacks.h:99
std::vector< int > m_vweights
Definition: partition_weighting_callbacks.h:140
std::vector< int > m_vsi2
Definition: partition_weighting_callbacks.h:139
virtual ~InterSubsetPartitionWeighting()
Definition: partition_weighting_callbacks.h:100
virtual int operator()(Edge *e1, Edge *e2)
Definition: partition_weighting_callbacks.h:110
Handles subsets on a per level basis.
Definition: subset_handler_multi_grid.h:60
uint get_level(TGeomObj *obj) const
returns the level in which an element is located
Definition: subset_handler_multi_grid.h:84
Definition: partition_weighting_callbacks.h:50
PartitionWeighting()
Definition: partition_weighting_callbacks.h:52
void set_default_weights(int hWeight, int vWeight)
Definition: partition_weighting_callbacks.h:64
int m_hWeight
Definition: partition_weighting_callbacks.h:87
MGSubsetHandler * m_sh
Definition: partition_weighting_callbacks.h:85
virtual ~PartitionWeighting()
Definition: partition_weighting_callbacks.h:53
int weigh(TElem *e1, TElem *e2)
Definition: partition_weighting_callbacks.h:72
virtual int operator()(Edge *e1, Edge *e2)
Definition: partition_weighting_callbacks.h:55
int m_vWeight
Definition: partition_weighting_callbacks.h:88
void set_subset_handler(MGSubsetHandler *sh)
Definition: partition_weighting_callbacks.h:59
Definition: partition_weighting_callbacks.h:154
std::vector< int > m_vSi
Definition: partition_weighting_callbacks.h:210
void set_weight(int si, int weight)
Definition: partition_weighting_callbacks.h:164
int weigh(TElem *e1, TElem *e2)
Definition: partition_weighting_callbacks.h:176
virtual int operator()(Edge *e1, Edge *e2)
Definition: partition_weighting_callbacks.h:170
std::vector< int > m_vWeights
Definition: partition_weighting_callbacks.h:211
ProtectSubsetPartitionWeighting()
Definition: partition_weighting_callbacks.h:160
MultiGrid::traits< Vertex >::secure_container vertex_list
Definition: partition_weighting_callbacks.h:156
virtual ~ProtectSubsetPartitionWeighting()
Definition: partition_weighting_callbacks.h:161
Volumes are 3-dimensional objects.
Definition: grid_base_objects.h:754
#define UG_THROW(msg)
Definition: error.h:57
The traits class holds some important types for each element-type.
Definition: grid.h:136