waLBerla 7.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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::ranges::max_element(t);})
 
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::ranges::max_element(t);})
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: