OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::SmoothIndicPlus2D< T, S > Class Template Reference

addition functor acts as union More...

#include <smoothIndicatorCalcF2D.h>

+ Inheritance diagram for olb::SmoothIndicPlus2D< T, S >:
+ Collaboration diagram for olb::SmoothIndicPlus2D< T, S >:

Public Member Functions

 SmoothIndicPlus2D (SmoothIndicatorF2D< T, S > &f, SmoothIndicatorF2D< T, S > &g)
 
bool operator() (T output[], const S input[]) override
 
- Public Member Functions inherited from olb::SmoothIndicCalc2D< T, S >
 SmoothIndicCalc2D (SmoothIndicatorF2D< T, S > &f, SmoothIndicatorF2D< T, S > &g)
 

Additional Inherited Members

- Protected Attributes inherited from olb::SmoothIndicCalc2D< T, S >
SmoothIndicatorF2D< T, S > & _f
 
SmoothIndicatorF2D< T, S > & _g
 

Detailed Description

template<typename T, typename S>
class olb::SmoothIndicPlus2D< T, S >

addition functor acts as union

Definition at line 46 of file smoothIndicatorCalcF2D.h.

Constructor & Destructor Documentation

◆ SmoothIndicPlus2D()

template<typename T , typename S >
olb::SmoothIndicPlus2D< T, S >::SmoothIndicPlus2D ( SmoothIndicatorF2D< T, S > & f,
SmoothIndicatorF2D< T, S > & g )

Definition at line 48 of file smoothIndicatorCalcF2D.hh.

49 : SmoothIndicCalc2D<T,S>(f,g)
50{}

Member Function Documentation

◆ operator()()

template<typename T , typename S >
bool olb::SmoothIndicPlus2D< T, S >::operator() ( T output[],
const S input[] )
override

Definition at line 54 of file smoothIndicatorCalcF2D.hh.

55{
56 this->_f(output, input);
57 T tmp;
58 this->_g(&tmp, input);
59 output[0] = util::max(output[0], tmp);
60 return true;
61}
SmoothIndicatorF2D< T, S > & _g
SmoothIndicatorF2D< T, S > & _f
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:130

References olb::util::max().

+ Here is the call graph for this function:

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