25#ifndef SMOOTH_INDICATOR_CALC_F_2D_HH
26#define SMOOTH_INDICATOR_CALC_F_2D_HH
34template <
typename T,
typename S>
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]);
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);
47template <
typename T,
typename S>
53template <
typename T,
typename S>
56 this->_f(output, input);
58 this->_g(&tmp, input);
64template <
typename T,
typename S>
67 auto tmp = std::make_shared< SmoothIndicPlus2D<T,S> >(*
this,rhs);
68 this->_ptrCalcC = tmp;
IndicSmoothCalc2D //////////////////////////////// arithmetic helper class for Indicator 2d functors.
SmoothIndicCalc2D(SmoothIndicatorF2D< T, S > &f, SmoothIndicatorF2D< T, S > &g)
SmoothIndicPlus2D(SmoothIndicatorF2D< T, S > &f, SmoothIndicatorF2D< T, S > &g)
bool operator()(T output[], const S input[]) override
cpu::simd::Pack< T > min(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
Top level namespace for all of OpenLB.