ug4
|
A small wrapper for LoadBalancer which adds comfort methods to balance and distribute domains. More...
#include <domain_load_balancer.h>
Public Member Functions | |
virtual void | add_serializer (SPEdgeDataSerializer cb) |
virtual void | add_serializer (SPFaceDataSerializer cb) |
virtual void | add_serializer (SPGridDataSerializer cb) |
virtual void | add_serializer (SPVertexDataSerializer cb) |
add serialization callbacks. More... | |
virtual void | add_serializer (SPVolumeDataSerializer cb) |
DomainLoadBalancer (SmartPtr< TDomain > dom) | |
Public Member Functions inherited from ug::LoadBalancer | |
void | create_quality_record (const char *label) |
virtual void | enable_vertical_interface_creation (bool enable) |
LoadBalancer () | |
void | print_last_quality_record () const |
void | print_quality_records () const |
bool | problems_occurred () |
indicates whether problems occurred during the last rebalancing. More... | |
virtual bool | rebalance () |
performs load balancing if the balance is too bad or if a distribution level has been reached. More... | |
virtual void | set_balance_threshold (number threshold) |
If the balance falls below the given threshold, then rebalance will perform redistribution. More... | |
virtual void | set_balance_weights (SPBalanceWeights balanceWeights) |
Sets a callback class which provides the balance weight for a given element. More... | |
virtual void | set_element_threshold (size_t threshold) |
virtual void | set_grid (MultiGrid *mg) |
virtual void | set_next_process_hierarchy (SPProcessHierarchy procHierarchy) |
Sets a callback class which provides connection weights between two neighbor elements. More... | |
virtual void | set_partitioner (SPPartitioner partitioner) |
Sets the partitioner which is used to partition the grid into balanced parts. More... | |
virtual | ~LoadBalancer () |
virtual number | estimate_distribution_quality (std::vector< number > *pLvlQualitiesOut) |
number | estimate_distribution_quality () |
virtual void | add_serializer (SPVertexDataSerializer cb) |
add serialization callbacks. More... | |
virtual void | add_serializer (SPEdgeDataSerializer cb) |
add serialization callbacks. More... | |
virtual void | add_serializer (SPFaceDataSerializer cb) |
add serialization callbacks. More... | |
virtual void | add_serializer (SPVolumeDataSerializer cb) |
add serialization callbacks. More... | |
virtual void | add_serializer (SPGridDataSerializer cb) |
add serialization callbacks. More... | |
Private Types | |
typedef LoadBalancer | base_class |
Private Attributes | |
SmartPtr< TDomain > | m_dom |
A small wrapper for LoadBalancer which adds comfort methods to balance and distribute domains.
|
private |
|
inline |
Adds serializers for the domains position attachment and for its subset handler.
References ug::LoadBalancer::add_serializer(), create(), ug::SubsetHandlerSerializer::create(), SmartPtr< T, FreePolicy >::get(), ug::LoadBalancer::set_grid(), and SmartPtr< T, FreePolicy >::valid().
|
inline |
|
inline |
|
inline |
|
inline |
add serialization callbacks.
Used when the grid is being distributed to pack data associated with grid objects or associated classes like subset-handlers.
|
inline |
|
private |