OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::operators::WriteFunctorO< FUNCTOR, TO > Struct Template Reference

Operator which evaluate a functor and write its results into the passed field. More...

#include <writeFunctorO.h>

+ Collaboration diagram for olb::operators::WriteFunctorO< FUNCTOR, TO >:

Public Types

using parameters = FUNCTOR::parameters
 

Public Member Functions

int getPriority () const
 
template<typename CELL , typename PARAMETERS >
void apply (CELL &cell, PARAMETERS &parameters) any_platform
 

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCellWithParameters
 

Detailed Description

template<typename FUNCTOR, typename TO>
struct olb::operators::WriteFunctorO< FUNCTOR, TO >

Operator which evaluate a functor and write its results into the passed field.

Definition at line 38 of file writeFunctorO.h.

Member Typedef Documentation

◆ parameters

template<typename FUNCTOR , typename TO >
using olb::operators::WriteFunctorO< FUNCTOR, TO >::parameters = FUNCTOR::parameters

Definition at line 40 of file writeFunctorO.h.

Member Function Documentation

◆ apply()

template<typename FUNCTOR , typename TO >
template<typename CELL , typename PARAMETERS >
void olb::operators::WriteFunctorO< FUNCTOR, TO >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 47 of file writeFunctorO.h.

48 {
49 cell.template setField<TO>(FUNCTOR{}.compute(cell, parameters));
50 }
FUNCTOR::parameters parameters

◆ getPriority()

template<typename FUNCTOR , typename TO >
int olb::operators::WriteFunctorO< FUNCTOR, TO >::getPriority ( ) const
inline

Definition at line 42 of file writeFunctorO.h.

42 {
43 return 0;
44 }

Member Data Documentation

◆ scope

template<typename FUNCTOR , typename TO >
OperatorScope olb::operators::WriteFunctorO< FUNCTOR, TO >::scope = OperatorScope::PerCellWithParameters
staticconstexpr

Definition at line 39 of file writeFunctorO.h.


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