Operator for striping off density offset.
More...
#include <blockLattice.hh>
Operator for striping off density offset.
Used by BlockLattice::stripeOffDensityOffset
Definition at line 334 of file blockLattice.hh.
◆ parameters
◆ apply()
template<typename CELL , typename PARAMETERS >
void olb::StripeOffDensityOffsetO::apply |
( |
CELL & | cell, |
|
|
PARAMETERS & | parameters ) |
|
inline |
Definition at line 345 of file blockLattice.hh.
345 {
346 using V = typename CELL::value_t;
347 using DESCRIPTOR = typename CELL::descriptor_t;
348 auto offset =
parameters.template get<OFFSET>();
349 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
350 cell[iPop] -= descriptors::t<V,DESCRIPTOR>(iPop) * offset;
351 }
352 }
meta::list< OFFSET > parameters
◆ getPriority()
int olb::StripeOffDensityOffsetO::getPriority |
( |
| ) |
const |
|
inline |
◆ scope
The documentation for this struct was generated from the following file: