General assignment functor for load balancing.
Uses BlockInfo::computationalWeight as PhantomBlockWeight
#include <WeightAssignmentFunctor.h>
◆ PhantomBlockWeight
Convenience typedef to be used as PhantomBlock weight in conjunction with this weight assignment functor.
◆ PhantomBlockWeightPackUnpackFunctor
Convenience typedef for pack and unpack functions to be used in conjunction with PhantomBlockWeight.
◆ WeightAssignmentFunctor()
◆ getBaseWeight()
double walberla::blockforest::WeightAssignmentFunctor::getBaseWeight |
( |
| ) |
const |
|
inline |
◆ operator()()
void walberla::blockforest::WeightAssignmentFunctor::operator() |
( |
std::vector< std::pair< const PhantomBlock *, walberla::any > > & |
blockData, |
|
|
const PhantomBlockForest & |
|
|
) |
| |
|
inline |
◆ setBaseWeight()
void walberla::blockforest::WeightAssignmentFunctor::setBaseWeight |
( |
const double |
weight | ) |
|
|
inline |
◆ baseWeight_
double walberla::blockforest::WeightAssignmentFunctor::baseWeight_ = real_t(10.0) |
|
private |
Base weight due to allocated data structures. A weight of zero for blocks is dangerous as empty blocks might accumulate on one process!
◆ ic_
The documentation for this class was generated from the following file: