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"

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... | |
Function for setting the load balance based on equal cells per processor.
Definition in file SetLoad.hpp.
| 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.
| tproc | The tessellation of the processors |
| points | The local cell points of the current rank (the points for this current cpu), may be redistributed among other cpus |
| outer | The geometric boundary conditions |
| Niter | The number of correction iterations to use |
| speed | How fast to make the correction each iteration in units of cpu cell size |
| mode | The operating mode, 1=Hybrid, 2=Pressure based, 3= Density based |
| Rmin | Optional, 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.
| 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.
| tproc | The tessellation of the processors |
| points | The local cell points of the current rank (the points for this current cpu), may be redistributed among other cpus |
| outer | The geometric boundary conditions |
| TargetLoad | The target load balance, must be higher than 1, recommened to be 1.5 |
| speed | How fast to make the correction each iteration in units of cpu cell size |
| mode | The operating mode, 1=Hybrid, 2=Pressure based, 3= Density based |
| Rmin | Optional, 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.
1.8.13