OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock > Class Template Referencefinal

Application of a block-wise OPERATOR on a concrete CUDA block. More...

#include <operator.h>

+ Inheritance diagram for olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >:
+ Collaboration diagram for olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >:

Public Member Functions

std::type_index id () const override
 
std::size_t weight () const override
 Get number of cells covered by operator (optional)
 
void set (CellID iCell, bool state) override
 Set whether iCell is covered by the operator (optional)
 
void setup (ConcreteBlockLattice< T, DESCRIPTOR, Platform::GPU_CUDA > &block) override
 
void apply (ConcreteBlockLattice< T, DESCRIPTOR, Platform::GPU_CUDA > &block) override
 
- Public Member Functions inherited from olb::BlockO< T, DESCRIPTOR, Platform::GPU_CUDA >
virtual void setup (ConcreteBlockLattice< T, DESCRIPTOR, PLATFORM > &block)=0
 Setup operator context.
 
virtual void apply (ConcreteBlockLattice< T, DESCRIPTOR, PLATFORM > &block)=0
 Apply operator on block.
 
- Public Member Functions inherited from olb::AbstractBlockO
virtual ~AbstractBlockO ()=default
 

Detailed Description

template<typename T, typename DESCRIPTOR, concepts::BlockOperator OPERATOR>
class olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >

Application of a block-wise OPERATOR on a concrete CUDA block.

e.g. StatisticsPostProcessor

Definition at line 217 of file operator.h.

Member Function Documentation

◆ apply()

template<typename T , typename DESCRIPTOR , concepts::BlockOperator OPERATOR>
void olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >::apply ( ConcreteBlockLattice< T, DESCRIPTOR, Platform::GPU_CUDA > & block)
inlineoverride

Definition at line 240 of file operator.h.

241 {
242 OPERATOR().apply(block);
243 }
#define OPERATOR(OP, rhs)
Definition aDiffTape.h:64

References OPERATOR.

◆ id()

template<typename T , typename DESCRIPTOR , concepts::BlockOperator OPERATOR>
std::type_index olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >::id ( ) const
inlineoverridevirtual

Implements olb::AbstractBlockO.

Definition at line 220 of file operator.h.

221 {
222 return typeid(OPERATOR);
223 }

References OPERATOR.

◆ set()

template<typename T , typename DESCRIPTOR , concepts::BlockOperator OPERATOR>
void olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >::set ( CellID iCell,
bool state )
inlineoverridevirtual

Set whether iCell is covered by the operator (optional)

Implements olb::BlockO< T, DESCRIPTOR, Platform::GPU_CUDA >.

Definition at line 230 of file operator.h.

231 {
232 throw std::logic_error("BlockO::set not supported for OperatorScope::PerBlock");
233 }

◆ setup()

template<typename T , typename DESCRIPTOR , concepts::BlockOperator OPERATOR>
void olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >::setup ( ConcreteBlockLattice< T, DESCRIPTOR, Platform::GPU_CUDA > & block)
inlineoverride

Definition at line 235 of file operator.h.

236 {
237 OPERATOR().setup(block);
238 }

References OPERATOR.

◆ weight()

template<typename T , typename DESCRIPTOR , concepts::BlockOperator OPERATOR>
std::size_t olb::ConcreteBlockO< T, DESCRIPTOR, Platform::GPU_CUDA, OPERATOR, OperatorScope::PerBlock >::weight ( ) const
inlineoverridevirtual

Get number of cells covered by operator (optional)

Implements olb::BlockO< T, DESCRIPTOR, Platform::GPU_CUDA >.

Definition at line 225 of file operator.h.

226 {
227 return 0;
228 }

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