OpenLB 1.7
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
olb::particles::conditions::particle_matching_ID< selectedID > Struct Template Reference

#include <particleConditions.h>

+ Collaboration diagram for olb::particles::conditions::particle_matching_ID< selectedID >:

Static Public Member Functions

template<typename T , typename PARTICLETYPE >
static bool value (Particle< T, PARTICLETYPE > &particle)
 

Static Public Attributes

static constexpr bool dynamic =true
 

Detailed Description

template<std::size_t selectedID>
struct olb::particles::conditions::particle_matching_ID< selectedID >

Definition at line 139 of file particleConditions.h.

Member Function Documentation

◆ value()

template<std::size_t selectedID>
template<typename T , typename PARTICLETYPE >
static bool olb::particles::conditions::particle_matching_ID< selectedID >::value ( Particle< T, PARTICLETYPE > & particle)
inlinestatic

Definition at line 141 of file particleConditions.h.

141 {
142 using namespace descriptors;
143 bool match = false;
144 if constexpr ( PARTICLETYPE::template providesNested<PARALLELIZATION,ID>() ) {
145 match = (particle.template getField<PARALLELIZATION,ID>() == selectedID);
146 } else {
147 match = (particle.getId() == selectedID);
148 }
149 return match;
150 }

References olb::particles::Particle< T, PARTICLETYPE >::getId().

+ Here is the call graph for this function:

Member Data Documentation

◆ dynamic

template<std::size_t selectedID>
constexpr bool olb::particles::conditions::particle_matching_ID< selectedID >::dynamic =true
staticconstexpr

Definition at line 152 of file particleConditions.h.


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