walberla::pe_coupling::amr::MetisAssignmentFunctor Class Reference

#include <MetisAssignmentFunctor.h>

Public Member Functions

 MetisAssignmentFunctor (shared_ptr< InfoCollection > &ic, const std::function< real_t(const BlockInfo &)> &weightEvaluationFct, const uint_t ncon=1)
 
 MetisAssignmentFunctor (shared_ptr< InfoCollection > &ic, const std::vector< std::function< real_t(const BlockInfo &)> > &weightEvaluationFct)
 
void operator() (std::vector< std::pair< const PhantomBlock *, walberla::any > > &blockData, const PhantomBlockForest &phantomBlockForest)
 
void setWeightEvaluationFct (const std::function< real_t(const BlockInfo &)> &weightEvaluationFct, const uint_t con=0)
 
void setWeightEvaluationFcts (const std::vector< std::function< real_t(const BlockInfo &)> > &weightEvaluationFct)
 
uint_t getNcon () const
 
void setBlockBaseWeight (const real_t blockBaseWeight)
 
real_t getBlockBaseWeight () const
 

Private Attributes

shared_ptr< InfoCollectionic_
 
uint_t ncon_
 
std::vector< std::function< real_t(const BlockInfo &)> > weightEvaluationFct_
 
real_t blockBaseWeight_ = real_t(1)
 

Constructor & Destructor Documentation

◆ MetisAssignmentFunctor() [1/2]

walberla::pe_coupling::amr::MetisAssignmentFunctor::MetisAssignmentFunctor ( shared_ptr< InfoCollection > &  ic,
const std::function< real_t(const BlockInfo &)> &  weightEvaluationFct,
const uint_t  ncon = 1 
)
inline

◆ MetisAssignmentFunctor() [2/2]

walberla::pe_coupling::amr::MetisAssignmentFunctor::MetisAssignmentFunctor ( shared_ptr< InfoCollection > &  ic,
const std::vector< std::function< real_t(const BlockInfo &)> > &  weightEvaluationFct 
)
inline

Member Function Documentation

◆ getBlockBaseWeight()

real_t walberla::pe_coupling::amr::MetisAssignmentFunctor::getBlockBaseWeight ( ) const
inline

◆ getNcon()

uint_t walberla::pe_coupling::amr::MetisAssignmentFunctor::getNcon ( ) const
inline

◆ operator()()

void walberla::pe_coupling::amr::MetisAssignmentFunctor::operator() ( std::vector< std::pair< const PhantomBlock *, walberla::any > > &  blockData,
const PhantomBlockForest phantomBlockForest 
)

◆ setBlockBaseWeight()

void walberla::pe_coupling::amr::MetisAssignmentFunctor::setBlockBaseWeight ( const real_t  blockBaseWeight)
inline

◆ setWeightEvaluationFct()

void walberla::pe_coupling::amr::MetisAssignmentFunctor::setWeightEvaluationFct ( const std::function< real_t(const BlockInfo &)> &  weightEvaluationFct,
const uint_t  con = 0 
)
inline

◆ setWeightEvaluationFcts()

void walberla::pe_coupling::amr::MetisAssignmentFunctor::setWeightEvaluationFcts ( const std::vector< std::function< real_t(const BlockInfo &)> > &  weightEvaluationFct)
inline

Member Data Documentation

◆ blockBaseWeight_

real_t walberla::pe_coupling::amr::MetisAssignmentFunctor::blockBaseWeight_ = real_t(1)
private

◆ ic_

shared_ptr<InfoCollection> walberla::pe_coupling::amr::MetisAssignmentFunctor::ic_
private

◆ ncon_

uint_t walberla::pe_coupling::amr::MetisAssignmentFunctor::ncon_
private

◆ weightEvaluationFct_

std::vector< std::function<real_t(const BlockInfo&)> > walberla::pe_coupling::amr::MetisAssignmentFunctor::weightEvaluationFct_
private

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