OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::gpu::cuda::DynamicDispatchCollision Struct Reference

Last node in a MaskedDynamics chain in kernel::call_operators. More...

#include <dynamics.hh>

+ Collaboration diagram for olb::gpu::cuda::DynamicDispatchCollision:

Public Member Functions

template<typename T , typename DESCRIPTOR >
bool operator() (DeviceContext< T, DESCRIPTOR > &lattice, CellID iCell) __device__
 
template<typename T , typename DESCRIPTOR >
bool operator() (DeviceContext< T, DESCRIPTOR > &lattice, CellID iCell, CellStatistic< T > &statistic) __device__
 

Detailed Description

Last node in a MaskedDynamics chain in kernel::call_operators.

Definition at line 150 of file dynamics.hh.

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 152 of file dynamics.hh.

152 {
153 if (auto* collisionO = lattice.template getField<DYNAMICS<T,DESCRIPTOR>>()[0][iCell]) {
154 collisionO->collide(lattice, iCell);
155 return true;
156 }
157 return false;
158 }

◆ operator()() [2/2]

template<typename T , typename DESCRIPTOR >
bool olb::gpu::cuda::DynamicDispatchCollision::operator() ( DeviceContext< T, DESCRIPTOR > & lattice,
CellID iCell,
CellStatistic< T > & statistic )
inline

Definition at line 161 of file dynamics.hh.

161 {
162 if (auto* collisionO = lattice.template getField<DYNAMICS<T,DESCRIPTOR>>()[0][iCell]) {
163 statistic = collisionO->collide(lattice, iCell);
164 return true;
165 }
166 return false;
167 }

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