SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
apf::Balancer Class Referenceabstract

Load balance over all mesh parts. More...

Public Member Functions

virtual void balance (MeshTag *weights, double tolerance)=0
 call collective load balancing More...
 

Detailed Description

Load balance over all mesh parts.

usually the construction of a specific Balancer will ask for a mesh object, which is the mesh to be acted upon

Definition at line 46 of file apfPartition.h.

Member Function Documentation

virtual void apf::Balancer::balance ( MeshTag *  weights,
double  tolerance 
)
pure virtual

call collective load balancing

Parameters
weightsa tag of one double that should be attached to all the elements. balancers will try to balance the total element weight of the existing parts. Some splitters support a weights pointer of zero, in which case elements are weighted equally
tolerancea factor greater than one at such that if max_weight < tolerance * average_weight the balancer will consider the parts balanced

the Balancer is responsible for running migrations to improve the load balance by its implementation-defined criteria. It is not allowed to modify anything besides partitioning


The documentation for this class was generated from the following file: