ug4
ug::StdBalanceWeights Class Reference

#include <load_balancer_util.h>

+ Inheritance diagram for ug::StdBalanceWeights:

Public Member Functions

virtual number get_weight (Edge *e)
 
virtual number get_weight (Face *e)
 
virtual number get_weight (Vertex *e)
 
virtual number get_weight (Volume *e)
 
virtual void refresh_weights (int)
 
virtual void set_weight (number wgt)
 
 StdBalanceWeights ()
 
virtual ~StdBalanceWeights ()
 
- Public Member Functions inherited from ug::IBalanceWeights
virtual number get_refined_weight (Edge *e)
 
virtual number get_refined_weight (Face *e)
 todo: use a more sophisticated implementation More...
 
virtual number get_refined_weight (Vertex *e)
 
virtual number get_refined_weight (Volume *e)
 todo: use a more sophisticated implementation More...
 
virtual bool has_level_offsets ()
 
virtual ~IBalanceWeights ()
 
virtual bool consider_in_level_above (Vertex *)
 Relative indicator in which level the specifed elements should be partitioned. More...
 
virtual bool consider_in_level_above (Edge *)
 Relative indicator in which level the specifed elements should be partitioned. More...
 
virtual bool consider_in_level_above (Face *)
 Relative indicator in which level the specifed elements should be partitioned. More...
 
virtual bool consider_in_level_above (Volume *)
 Relative indicator in which level the specifed elements should be partitioned. More...
 

Private Attributes

number m_wgt
 

Detailed Description

If a level-factor > 0 is specified, then the get_weight method returns for an element e with on level l:

(l+1) * lvlFac * wgt.

If level-factor <= 0, then m_wgt is simply returned. The default level-factor is 0, the default weight is 1.

Constructor & Destructor Documentation

◆ StdBalanceWeights()

ug::StdBalanceWeights::StdBalanceWeights ( )
inline

◆ ~StdBalanceWeights()

virtual ug::StdBalanceWeights::~StdBalanceWeights ( )
inlinevirtual

Member Function Documentation

◆ get_weight() [1/4]

virtual number ug::StdBalanceWeights::get_weight ( Edge e)
inlinevirtual

Reimplemented from ug::IBalanceWeights.

References m_wgt.

◆ get_weight() [2/4]

virtual number ug::StdBalanceWeights::get_weight ( Face e)
inlinevirtual

Reimplemented from ug::IBalanceWeights.

References m_wgt.

◆ get_weight() [3/4]

virtual number ug::StdBalanceWeights::get_weight ( Vertex e)
inlinevirtual

Reimplemented from ug::IBalanceWeights.

References m_wgt.

◆ get_weight() [4/4]

virtual number ug::StdBalanceWeights::get_weight ( Volume e)
inlinevirtual

Reimplemented from ug::IBalanceWeights.

References m_wgt.

◆ refresh_weights()

virtual void ug::StdBalanceWeights::refresh_weights ( int  )
inlinevirtual

Reimplemented from ug::IBalanceWeights.

◆ set_weight()

virtual void ug::StdBalanceWeights::set_weight ( number  wgt)
inlinevirtual

References m_wgt.

Member Data Documentation

◆ m_wgt

number ug::StdBalanceWeights::m_wgt
private

Referenced by get_weight(), and set_weight().


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