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

Unrestricted application of COUPLING::apply with parameters. More...

#include <operator.hh>

+ Collaboration diagram for olb::gpu::cuda::UnmaskedCouplingWithParameters< COUPLER, COUPLEES >:

Public Member Functions

template<typename PARAMETERS >
 UnmaskedCouplingWithParameters (PARAMETERS &parameters) any_platform
 
template<typename CONTEXT >
bool operator() (CONTEXT &lattices, CellID iCell) __device__
 

Detailed Description

template<typename COUPLER, typename COUPLEES>
class olb::gpu::cuda::UnmaskedCouplingWithParameters< COUPLER, COUPLEES >

Unrestricted application of COUPLING::apply with parameters.

Definition at line 191 of file operator.hh.

Constructor & Destructor Documentation

◆ UnmaskedCouplingWithParameters()

template<typename COUPLER , typename COUPLEES >
template<typename PARAMETERS >
olb::gpu::cuda::UnmaskedCouplingWithParameters< COUPLER, COUPLEES >::UnmaskedCouplingWithParameters ( PARAMETERS & parameters)
inline

Definition at line 199 of file operator.hh.

199 :
200 _parameters{parameters}
201 { }

Member Function Documentation

◆ operator()()

template<typename COUPLER , typename COUPLEES >
template<typename CONTEXT >
bool olb::gpu::cuda::UnmaskedCouplingWithParameters< COUPLER, COUPLEES >::operator() ( CONTEXT & lattices,
CellID iCell )
inline

Definition at line 204 of file operator.hh.

205 {
206 auto cells = lattices.exchange_values([&](auto name) -> auto {
207 return Cell{lattices.get(name), iCell};
208 });
209 COUPLER().apply(cells, _parameters);
210 return true;
211 }

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