Public Member Functions | List of all members
ConstNumberPerProc Class Reference

A load balancing scheme aiming for the same number of points in each process. More...

#include <ConstNumberPerProc.hpp>

Inheritance diagram for ConstNumberPerProc:
Inheritance graph
[legend]
Collaboration diagram for ConstNumberPerProc:
Collaboration graph
[legend]

Public Member Functions

 ConstNumberPerProc (OuterBoundary const &outer, double speed=0.03, double RoundSpeed=2, int mode=2, bool Rmin=false)
 Class constructor. More...
 
void Update (Tessellation &tproc, Tessellation const &tlocal) const
 Updates the load balance, does one iteration. More...
 
 ~ConstNumberPerProc (void)
 Class destructor.
 
- Public Member Functions inherited from ProcessorUpdate
virtual ~ProcessorUpdate (void)
 virtual destructor
 
double GetLoadImbalance (Tessellation const &tlocal, int &total) const
 Calcualtes the load imbalance as max(number of points per proc)/(avg per proc) More...
 

Detailed Description

A load balancing scheme aiming for the same number of points in each process.

Definition at line 11 of file ConstNumberPerProc.hpp.

Constructor & Destructor Documentation

◆ ConstNumberPerProc()

ConstNumberPerProc::ConstNumberPerProc ( OuterBoundary const &  outer,
double  speed = 0.03,
double  RoundSpeed = 2,
int  mode = 2,
bool  Rmin = false 
)

Class constructor.

Parameters
outerThe outer geometric boundary conditions
speedThe maximum change (in cell radii) of the processor movement
RoundSpeedBy which factor is the rounding mechanisim larger than the movement speed of the mesh points
modeThe operating mode, 1=Hybrid, 2=Pressure based, 3= Density based
RminOptional, sets a minimum radius for a cpu point to be at. This is sometimes needed in order to prevent cpus with zero points.

Definition at line 10 of file ConstNumberPerProc.cpp.

Member Function Documentation

◆ Update()

void ConstNumberPerProc::Update ( Tessellation tproc,
Tessellation const &  tlocal 
) const
virtual

Updates the load balance, does one iteration.

Parameters
tprocThe processors tessellation.
tlocalThe local tessellation

Implements ProcessorUpdate.

Definition at line 15 of file ConstNumberPerProc.cpp.

Here is the call graph for this function:

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