OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::momenta::ComputeRhoU< BASE, DENSITY, MOMENTUM > Struct Template Reference

Partially-specializable rho and u computation. More...

#include <interface.h>

+ Collaboration diagram for olb::momenta::ComputeRhoU< BASE, DENSITY, MOMENTUM >:

Public Member Functions

template<typename CELL , typename RHO , typename U >
void operator() (CELL &cell, RHO &rho, U &u) const any_platform
 

Detailed Description

template<typename BASE, typename DENSITY, typename MOMENTUM>
struct olb::momenta::ComputeRhoU< BASE, DENSITY, MOMENTUM >

Partially-specializable rho and u computation.

Currently required in order to perform basic CSE of this critical computation

Definition at line 52 of file interface.h.

Member Function Documentation

◆ operator()()

template<typename BASE , typename DENSITY , typename MOMENTUM >
template<typename CELL , typename RHO , typename U >
void olb::momenta::ComputeRhoU< BASE, DENSITY, MOMENTUM >::operator() ( CELL & cell,
RHO & rho,
U & u ) const
inline

Definition at line 54 of file interface.h.

55 {
56 DENSITY().template compute<BASE>(cell, rho);
57 MOMENTUM().template computeU<BASE>(cell, u);
58 };

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