walberla::blockforest::CombinedMinTargetLevelDeterminationFunctions Class Reference

#include <BlockForest.h>

Public Types

using MinTargetLevelDeterminationFunction = blockforest::BlockForest::RefreshMinTargetLevelDeterminationFunction
 

Public Member Functions

 CombinedMinTargetLevelDeterminationFunctions (const std::function< uint_t(const std::vector< uint_t > &)> &targetLevelReductionFct=[](const std::vector< uint_t > &t){ return *std::max_element(t.begin(), t.end());})
 
void add (const MinTargetLevelDeterminationFunction &function)
 
void operator() (std::vector< std::pair< const Block *, uint_t > > &minTargetLevels, std::vector< const Block * > &blocksAlreadyMarkedForRefinement, const blockforest::BlockForest &forest)
 

Private Attributes

std::vector< MinTargetLevelDeterminationFunctionfunctions_
 
std::function< uint_t(const std::vector< uint_t > &)> targetLevelReductionFct_
 

Member Typedef Documentation

◆ MinTargetLevelDeterminationFunction

Constructor & Destructor Documentation

◆ CombinedMinTargetLevelDeterminationFunctions()

walberla::blockforest::CombinedMinTargetLevelDeterminationFunctions::CombinedMinTargetLevelDeterminationFunctions ( const std::function< uint_t(const std::vector< uint_t > &)> &  targetLevelReductionFct = [](const std::vector<uint_t> & t){ return *std::max_element(t.begin(), t.end());})
inline

Member Function Documentation

◆ add()

void walberla::blockforest::CombinedMinTargetLevelDeterminationFunctions::add ( const MinTargetLevelDeterminationFunction function)
inline

◆ operator()()

void walberla::blockforest::CombinedMinTargetLevelDeterminationFunctions::operator() ( std::vector< std::pair< const Block *, uint_t > > &  minTargetLevels,
std::vector< const Block * > &  blocksAlreadyMarkedForRefinement,
const blockforest::BlockForest forest 
)
inline

Member Data Documentation

◆ functions_

std::vector< MinTargetLevelDeterminationFunction > walberla::blockforest::CombinedMinTargetLevelDeterminationFunctions::functions_
private

◆ targetLevelReductionFct_

std::function<uint_t(const std::vector<uint_t> &)> walberla::blockforest::CombinedMinTargetLevelDeterminationFunctions::targetLevelReductionFct_
private

The documentation for this class was generated from the following file: