BioCMAMC-ST
UniformLoadBalancer Class Referencefinal

Set the same number of particle for each rank. More...

#include <impl_lb.hpp>

Inheritance diagram for UniformLoadBalancer:
[legend]
Collaboration diagram for UniformLoadBalancer:
[legend]

Public Member Functions

 UniformLoadBalancer (uint32_t s)
Public Member Functions inherited from ILoadBalancer
virtual ~ILoadBalancer ()=default
 ILoadBalancer (uint32_t s)
 ILoadBalancer ()=delete
 ILoadBalancer (const ILoadBalancer &)=delete
 ILoadBalancer (ILoadBalancer &&)=delete
ILoadBalanceroperator= (ILoadBalancer &&)=delete
ILoadBalanceroperator= (const ILoadBalancer &)=delete
bool check (uint64_t n=0) const
uint64_t balance (uint32_t rank, uint64_t n)
 returns the number of particle for rank: 'rank' if the total number is 'n'

Protected Member Functions

double getRatio (uint64_t n, uint32_t rank) const noexcept final
Protected Member Functions inherited from ILoadBalancer
auto size () const noexcept

Detailed Description

Set the same number of particle for each rank.

Constructor & Destructor Documentation

◆ UniformLoadBalancer()

UniformLoadBalancer::UniformLoadBalancer ( uint32_t s)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ getRatio()

double UniformLoadBalancer::getRatio ( uint64_t n,
uint32_t rank ) const
nodiscardfinalprotectedvirtualnoexcept

Implements ILoadBalancer.

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • apps/core/includes/load_balancing/impl_lb.hpp
  • apps/core/src/load_balancing/impl_lb.cpp