OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::gpu::cuda::MaskedPostProcessor< OPERATOR > Class Template Reference

Masked application of OPERATOR::apply. More...

#include <operator.hh>

+ Collaboration diagram for olb::gpu::cuda::MaskedPostProcessor< OPERATOR >:

Public Member Functions

 MaskedPostProcessor (bool *mask) any_platform
 
template<typename T , typename DESCRIPTOR >
bool operator() (DeviceBlockLattice< T, DESCRIPTOR > &lattice, CellID iCell) __device__
 

Detailed Description

template<typename OPERATOR>
class olb::gpu::cuda::MaskedPostProcessor< OPERATOR >

Masked application of OPERATOR::apply.

Definition at line 119 of file operator.hh.

Constructor & Destructor Documentation

◆ MaskedPostProcessor()

template<typename OPERATOR >
olb::gpu::cuda::MaskedPostProcessor< OPERATOR >::MaskedPostProcessor ( bool * mask)
inline

Definition at line 125 of file operator.hh.

125 :
126 _mask{mask}
127 { }

Member Function Documentation

◆ operator()()

template<typename OPERATOR >
template<typename T , typename DESCRIPTOR >
bool olb::gpu::cuda::MaskedPostProcessor< OPERATOR >::operator() ( DeviceBlockLattice< T, DESCRIPTOR > & lattice,
CellID iCell )
inline

Definition at line 130 of file operator.hh.

130 {
131 if (_mask[iCell]) {
132 Cell<T,DESCRIPTOR> cell(lattice, iCell);
133 OPERATOR().apply(cell);
134 return true;
135 }
136 return false;
137 }

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