33 #ifndef __H__UG__load_balancing__
34 #define __H__UG__load_balancing__
58 template <
class TElem,
class TIterator,
class TAAPos>
60 TIterator begin, TIterator end,
61 int numCellsX,
int numCellsY,
int numCellsZ,
65 int bucketSubset = -1);
77 template <
class TGeomBaseObj>
79 Grid& grid,
int numParts);
100 template <
class TGeomBaseObj>
102 MultiGrid& grid,
int numParts,
103 size_t baseLevel = 0,
104 int hWeight = 1,
int vWeight = 1);
123 template <
class TGeomBaseObj>
125 MultiGrid& grid,
int numParts,
size_t baseLevel,
126 boost::function<
int (TGeomBaseObj*, TGeomBaseObj*)>& weightFct);
142 template <
class TGeomBaseObj>
144 MultiGrid& mg,
int numParts,
size_t level);
157 template <
class TGeomBaseObj>
159 MultiGrid& mg,
int numParts,
size_t level);
bool PartitionElements_RegularGrid(SubsetHandler &shOut, TIterator begin, TIterator end, int numCellsX, int numCellsY, int numCellsZ, TAAPos &aaPos, typename Grid::traits< TElem >::callback cbConsiderElem=ConsiderAll(), int bucketSubset=-1)
Partitions the elements in the grid by sorting them into a regular grid.
Definition: load_balancing_impl.hpp:50
bool PartitionGrid_MetisKway(SubsetHandler &shPartitionOut, Grid &grid, int numParts)
Partitions the elements in the grid using the METIS library.
Definition: load_balancing.cpp:64
bool PartitionMultiGridLevel_ParmetisKway(SubsetHandler &shPartitionOut, MultiGrid &mg, int numParts, size_t level)
Partitions the elements in the multi-grid using the PARMETIS library.
Definition: load_balancing.cpp:515
GridSubsetHandler SubsetHandler
Definition: subset_handler_grid.h:376
bool PartitionMultiGrid_MetisKway(SubsetHandler &shPartitionOut, MultiGrid &mg, int numParts, size_t baseLevel, int hWeight, int vWeight)
Partitions the elements in the multi-grid using the METIS library.
Definition: load_balancing.cpp:137
bool PartitionMultiGridLevel_MetisKway(SubsetHandler &shPartitionOut, MultiGrid &mg, int numParts, size_t level)
Partitions the elements in the multi-grid using the METIS library.
Definition: load_balancing.cpp:327
boost::function< bool(base_object *)> callback
callback type for the elements base type.
Definition: grid.h:150