OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::gpu::cuda::ListedCollision< T, DESCRIPTOR, DYNAMICS > Class Template Reference

List-based application of DYNAMICS::apply for use in kernel::call_list_operators. More...

#include <operator.hh>

+ Collaboration diagram for olb::gpu::cuda::ListedCollision< T, DESCRIPTOR, DYNAMICS >:

Public Member Functions

 ListedCollision (ParametersOfOperatorD< T, DESCRIPTOR, DYNAMICS > &parameters) __host__
 
bool operator() (DeviceContext< T, DESCRIPTOR > &lattice, CellID iCell) __device__
 
bool operator() (DeviceContext< T, DESCRIPTOR > &lattice, CellID iCell, CellStatistic< T > &statistic) __device__
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename DYNAMICS>
class olb::gpu::cuda::ListedCollision< T, DESCRIPTOR, DYNAMICS >

List-based application of DYNAMICS::apply for use in kernel::call_list_operators.

Definition at line 93 of file operator.hh.

Constructor & Destructor Documentation

◆ ListedCollision()

template<typename T , typename DESCRIPTOR , typename DYNAMICS >
olb::gpu::cuda::ListedCollision< T, DESCRIPTOR, DYNAMICS >::ListedCollision ( ParametersOfOperatorD< T, DESCRIPTOR, DYNAMICS > & parameters)
inline

Definition at line 98 of file operator.hh.

98 :
99 _parameters{parameters}
100 { }

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 102 of file operator.hh.

102 {
103 DataOnlyCell<T,DESCRIPTOR> cell(lattice, iCell);
104 DYNAMICS().apply(cell, _parameters);
105 return true;
106 }

◆ operator()() [2/2]

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

Definition at line 108 of file operator.hh.

108 {
109 DataOnlyCell<T,DESCRIPTOR> cell(lattice, iCell);
110 statistic = DYNAMICS().apply(cell, _parameters);
111 return true;
112 }

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