OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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 148 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 150 of file dynamics.hh.

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

◆ 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 159 of file dynamics.hh.

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

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