OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::CellOperatorO< OPERATOR > Struct Template Reference

#include <blockD.h>

+ Collaboration diagram for olb::CellOperatorO< OPERATOR >:

Public Member Functions

template<typename BLOCK >
void apply (BLOCK &block)
 
template<typename BLOCK >
void apply (BLOCK &block)
 

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerBlock
 

Detailed Description

template<typename OPERATOR>
requires (OPERATOR::scope == OperatorScope::PerCellWithParameters)
struct olb::CellOperatorO< OPERATOR >

Definition at line 92 of file blockD.h.

Member Function Documentation

◆ apply() [1/2]

template<typename OPERATOR >
template<typename BLOCK >
void olb::CellOperatorO< OPERATOR >::apply ( BLOCK & block)
inline

Definition at line 79 of file blockD.h.

79 {
80 for (std::size_t iCell=0; iCell < block.getNcells(); ++iCell) {
81 cpu::PlainCell<typename BLOCK::value_t,
82 typename BLOCK::descriptor_t,
83 BLOCK::platform>
84 cell(block, iCell);
85 OPERATOR{}.apply(cell);
86 }
87 }
#define OPERATOR(OP, rhs)
Definition aDiffTape.h:64

References OPERATOR.

◆ apply() [2/2]

template<typename OPERATOR >
template<typename BLOCK >
void olb::CellOperatorO< OPERATOR >::apply ( BLOCK & block)
inline

Definition at line 96 of file blockD.h.

96 {
97 auto params = block.template getData<OperatorParameters<OPERATOR>>()
98 .parameters
99 .template copyAs<typename BLOCK::value_t>();
100 for (std::size_t iCell=0; iCell < block.getNcells(); ++iCell) {
101 cpu::PlainCell<typename BLOCK::value_t,
102 typename BLOCK::descriptor_t,
103 BLOCK::platform>
104 cell(block, iCell);
105 OPERATOR{}.apply(cell, params);
106 }
107 }

References OPERATOR.

Member Data Documentation

◆ scope

template<typename OPERATOR >
static constexpr OperatorScope olb::CellOperatorO< OPERATOR >::scope = OperatorScope::PerBlock
staticconstexpr

Definition at line 76 of file blockD.h.


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