Functions
SetLoad.hpp File Reference

Function for setting the load balance based on equal cells per processor. More...

#include "ConstNumberPerProc.hpp"
#include "../tessellation/VoronoiMesh.hpp"
#include "../newtonian/two_dimensional/diagnostics.hpp"
#include "../misc/simple_io.hpp"
Include dependency graph for SetLoad.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SetLoad (Tessellation &tproc, vector< Vector2D > &points, OuterBoundary const &outer, int Niter=100, double speed=0.04, int mode=2, bool Rmin=false)
 Corrects the load between processors based on number of cells per processor. More...
 
void SetLoad (Tessellation &tproc, vector< Vector2D > &points, OuterBoundary const &outer, double TargetLoad, double speed=0.04, int mode=2, bool Rmin=false)
 Corrects the load between processors based on number of cells per processor, continues until target load is reached. More...
 

Detailed Description

Function for setting the load balance based on equal cells per processor.

Author
Elad Steinberg

Definition in file SetLoad.hpp.

Function Documentation

◆ SetLoad() [1/2]

void SetLoad ( Tessellation tproc,
vector< Vector2D > &  points,
OuterBoundary const &  outer,
int  Niter = 100,
double  speed = 0.04,
int  mode = 2,
bool  Rmin = false 
)

Corrects the load between processors based on number of cells per processor.

Parameters
tprocThe tessellation of the processors
pointsThe local cell points of the current rank (the points for this current cpu), may be redistributed among other cpus
outerThe geometric boundary conditions
NiterThe number of correction iterations to use
speedHow fast to make the correction each iteration in units of cpu cell size
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 60 of file SetLoad.cpp.

◆ SetLoad() [2/2]

void SetLoad ( Tessellation tproc,
vector< Vector2D > &  points,
OuterBoundary const &  outer,
double  TargetLoad,
double  speed = 0.04,
int  mode = 2,
bool  Rmin = false 
)

Corrects the load between processors based on number of cells per processor, continues until target load is reached.

Parameters
tprocThe tessellation of the processors
pointsThe local cell points of the current rank (the points for this current cpu), may be redistributed among other cpus
outerThe geometric boundary conditions
TargetLoadThe target load balance, must be higher than 1, recommened to be 1.5
speedHow fast to make the correction each iteration in units of cpu cell size
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 66 of file SetLoad.cpp.