hemocell
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | List of all members
hemo::LoadBalancer Class Reference

#include <loadBalancer.h>

Collaboration diagram for hemo::LoadBalancer:
Collaboration graph
[legend]

Classes

struct  Box3D_simple
 
class  GatherTimeOfAtomicBlocks
 
struct  TOAB_t
 

Public Member Functions

 LoadBalancer (HemoCell &hemocell_)
 
double calculateFractionalLoadImbalance ()
 
void restructureBlocks (bool checkpoint_available=true)
 Without ParMETIS restructuring is unavailable; say so instead of silently doing nothing.
 
void doLoadBalance ()
 
void reloadCheckpoint ()
 

Private Attributes

bool FLI_iscalled = false
 
std::map< int, TOAB_t > gatherValues
 
HemoCell & hemocell
 
bool original_block_stored = true
 
plb::SparseBlockStructure3D * original_block_structure = 0
 
plb::ThreadAttribution * original_thread_attribution = 0
 

Constructor & Destructor Documentation

◆ LoadBalancer()

hemo::LoadBalancer::LoadBalancer ( HemoCell &  hemocell_)
inline

Member Function Documentation

◆ calculateFractionalLoadImbalance()

double hemo::LoadBalancer::calculateFractionalLoadImbalance ( )
inline

◆ doLoadBalance()

void hemo::LoadBalancer::doLoadBalance ( )

◆ reloadCheckpoint()

void hemo::LoadBalancer::reloadCheckpoint ( )

used to reload a checkpoint, but first reload the config file

◆ restructureBlocks()

void hemo::LoadBalancer::restructureBlocks ( bool  checkpoint_available = true)
inline

Without ParMETIS restructuring is unavailable; say so instead of silently doing nothing.

Member Data Documentation

◆ FLI_iscalled

bool hemo::LoadBalancer::FLI_iscalled = false
private

◆ gatherValues

std::map<int, TOAB_t> hemo::LoadBalancer::gatherValues
private

◆ hemocell

HemoCell& hemo::LoadBalancer::hemocell
private

◆ original_block_stored

bool hemo::LoadBalancer::original_block_stored = true
private

◆ original_block_structure

plb::SparseBlockStructure3D* hemo::LoadBalancer::original_block_structure = 0
private

◆ original_thread_attribution

plb::ThreadAttribution* hemo::LoadBalancer::original_thread_attribution = 0
private