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

IndicSmoothCalc2D //////////////////////////////// arithmetic helper class for Indicator 2d functors. More...

#include <smoothIndicatorCalcF2D.h>

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

Public Member Functions

 SmoothIndicCalc2D (SmoothIndicatorF2D< T, S > &f, SmoothIndicatorF2D< T, S > &g)
 

Protected Attributes

SmoothIndicatorF2D< T, S > & _f
 
SmoothIndicatorF2D< T, S > & _g
 

Detailed Description

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

IndicSmoothCalc2D //////////////////////////////// arithmetic helper class for Indicator 2d functors.

Definition at line 36 of file smoothIndicatorCalcF2D.h.

Constructor & Destructor Documentation

◆ SmoothIndicCalc2D()

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

Definition at line 35 of file smoothIndicatorCalcF2D.hh.

36 : _f(f), _g(g)
37{
38 for ( int i=0; i<2; i++) {
39 this->_myMin[i] = util::min(f.getMin()[i], g.getMin()[i]);
40 this->_myMax[i] = util::max(f.getMax()[i], g.getMax()[i]);
41 }
42 this->_circumRadius = util::max( 0.5*(this->getMax()[0]-this->getMin()[0]), 0.5*(this->getMax()[1]-this->getMin()[1]));
43 std::swap(f._ptrCalcC, this->_ptrCalcC);
44}
SmoothIndicatorF2D< T, S > & _g
SmoothIndicatorF2D< T, S > & _f
cpu::simd::Pack< T > min(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:124
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Definition pack.h:130

References olb::util::max(), and olb::util::min().

+ Here is the call graph for this function:

Member Data Documentation

◆ _f

template<typename T , typename S >
SmoothIndicatorF2D<T,S>& olb::SmoothIndicCalc2D< T, S >::_f
protected

Definition at line 38 of file smoothIndicatorCalcF2D.h.

◆ _g

template<typename T , typename S >
SmoothIndicatorF2D<T,S>& olb::SmoothIndicCalc2D< T, S >::_g
protected

Definition at line 39 of file smoothIndicatorCalcF2D.h.


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