walberla::mesh::MeshWorkloadMemory< DistanceObject > Class Template Reference

#include <BlockWorkloadMemory.h>

Public Types

typedef blockforest::memory_t memory_t
 
typedef blockforest::workload_t workload_t
 
typedef DistanceObject::Scalar Scalar
 

Public Member Functions

 MeshWorkloadMemory (const shared_ptr< DistanceObject > &distanceObject, const Vector3< Scalar > &cellSize)
 
 MeshWorkloadMemory (const shared_ptr< DistanceObject > &distanceObject, const Scalar cellSize)
 
void setInsideCellWorkload (const workload_t workload)
 
void setOutsideCellWorkload (const workload_t workload)
 
void setInsideCellMemoryConsumption (const memory_t memoryConsumption)
 
void setOutsideCellMemoryConsumption (const memory_t memoryConsumption)
 
void setForceZeroMemoryOnZeroWorkload (const bool value)
 
void setZeroWorkloadSUID (const SUID &suid)
 
void operator() (blockforest::SetupBlockForest &forest) const
 

Private Member Functions

void defaultInit ()
 
void countCells (const math::GenericAABB< Scalar > &aabb, const uint_t level, uint_t &numCellsInside, uint_t &numCellsOutside) const
 

Private Attributes

shared_ptr< DistanceObject > distanceObject_
 
Vector3< typename DistanceObject::Scalar > cellSize_
 
memory_t outsideCellMemoryConsumption_
 
memory_t insideCellMemoryConsumption_
 
workload_t outsideCellWorkload_
 
workload_t insideCellWorkload_
 
shared_ptr< SUID > zeroWorkloadSUID_
 
bool forceZeroMemoryOnZeroWorkload_
 

Member Typedef Documentation

◆ memory_t

template<typename DistanceObject >
typedef blockforest::memory_t walberla::mesh::MeshWorkloadMemory< DistanceObject >::memory_t

◆ Scalar

template<typename DistanceObject >
typedef DistanceObject::Scalar walberla::mesh::MeshWorkloadMemory< DistanceObject >::Scalar

◆ workload_t

template<typename DistanceObject >
typedef blockforest::workload_t walberla::mesh::MeshWorkloadMemory< DistanceObject >::workload_t

Constructor & Destructor Documentation

◆ MeshWorkloadMemory() [1/2]

template<typename DistanceObject >
walberla::mesh::MeshWorkloadMemory< DistanceObject >::MeshWorkloadMemory ( const shared_ptr< DistanceObject > &  distanceObject,
const Vector3< Scalar > &  cellSize 
)
inline

◆ MeshWorkloadMemory() [2/2]

template<typename DistanceObject >
walberla::mesh::MeshWorkloadMemory< DistanceObject >::MeshWorkloadMemory ( const shared_ptr< DistanceObject > &  distanceObject,
const Scalar  cellSize 
)
inline

Member Function Documentation

◆ countCells()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::countCells ( const math::GenericAABB< Scalar > &  aabb,
const uint_t  level,
uint_t numCellsInside,
uint_t numCellsOutside 
) const
private

◆ defaultInit()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::defaultInit
inlineprivate

◆ operator()()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::operator() ( blockforest::SetupBlockForest forest) const
inline

◆ setForceZeroMemoryOnZeroWorkload()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::setForceZeroMemoryOnZeroWorkload ( const bool  value)
inline

◆ setInsideCellMemoryConsumption()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::setInsideCellMemoryConsumption ( const memory_t  memoryConsumption)
inline

◆ setInsideCellWorkload()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::setInsideCellWorkload ( const workload_t  workload)
inline

◆ setOutsideCellMemoryConsumption()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::setOutsideCellMemoryConsumption ( const memory_t  memoryConsumption)
inline

◆ setOutsideCellWorkload()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::setOutsideCellWorkload ( const workload_t  workload)
inline

◆ setZeroWorkloadSUID()

template<typename DistanceObject >
void walberla::mesh::MeshWorkloadMemory< DistanceObject >::setZeroWorkloadSUID ( const SUID &  suid)
inline

Member Data Documentation

◆ cellSize_

template<typename DistanceObject >
Vector3< typename DistanceObject::Scalar > walberla::mesh::MeshWorkloadMemory< DistanceObject >::cellSize_
private

◆ distanceObject_

template<typename DistanceObject >
shared_ptr< DistanceObject > walberla::mesh::MeshWorkloadMemory< DistanceObject >::distanceObject_
private

◆ forceZeroMemoryOnZeroWorkload_

template<typename DistanceObject >
bool walberla::mesh::MeshWorkloadMemory< DistanceObject >::forceZeroMemoryOnZeroWorkload_
private

◆ insideCellMemoryConsumption_

template<typename DistanceObject >
memory_t walberla::mesh::MeshWorkloadMemory< DistanceObject >::insideCellMemoryConsumption_
private

◆ insideCellWorkload_

template<typename DistanceObject >
workload_t walberla::mesh::MeshWorkloadMemory< DistanceObject >::insideCellWorkload_
private

◆ outsideCellMemoryConsumption_

template<typename DistanceObject >
memory_t walberla::mesh::MeshWorkloadMemory< DistanceObject >::outsideCellMemoryConsumption_
private

◆ outsideCellWorkload_

template<typename DistanceObject >
workload_t walberla::mesh::MeshWorkloadMemory< DistanceObject >::outsideCellWorkload_
private

◆ zeroWorkloadSUID_

template<typename DistanceObject >
shared_ptr< SUID > walberla::mesh::MeshWorkloadMemory< DistanceObject >::zeroWorkloadSUID_
private

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