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

Absolute error norm functor. More...

#include <superErrorNorm2D.h>

+ Inheritance diagram for olb::SuperAbsoluteErrorLpNorm2D< T, W, P >:
+ Collaboration diagram for olb::SuperAbsoluteErrorLpNorm2D< T, W, P >:

Public Member Functions

template<typename DESCRIPTOR >
 SuperAbsoluteErrorLpNorm2D (SuperLattice< T, DESCRIPTOR > &sLattice, FunctorPtr< SuperF2D< T, W > > &&f, FunctorPtr< AnalyticalF2D< T, W > > &&wantedF, FunctorPtr< SuperIndicatorF2D< T > > &&indicatorF)
 
template<typename DESCRIPTOR >
 SuperAbsoluteErrorLpNorm2D (SuperLatticeF2D< T, DESCRIPTOR > &f, FunctorPtr< AnalyticalF2D< T, W > > &&wantedF, FunctorPtr< SuperIndicatorF2D< T > > &&indicatorF)
 
- Public Member Functions inherited from olb::SuperIdentity2D< T, W >
 SuperIdentity2D (FunctorPtr< SuperF2D< T, W > > &&f)
 
bool operator() (W output[], const int input[]) override
 
- Public Member Functions inherited from olb::SuperF2D< T, W >
SuperF2D< T, W > & operator- (SuperF2D< T, W > &rhs)
 
SuperF2D< T, W > & operator+ (SuperF2D< T, W > &rhs)
 
SuperF2D< T, W > & operator* (SuperF2D< T, W > &rhs)
 
SuperF2D< T, W > & operator/ (SuperF2D< T, W > &rhs)
 
SuperStructure< T, 2 > & getSuperStructure ()
 
int getBlockFSize () const
 
BlockF2D< W > & getBlockF (int iCloc)
 
- Public Member Functions inherited from olb::GenericF< W, int >
virtual ~GenericF ()=default
 
int getSourceDim () const
 read only access to member variable _m
 
int getTargetDim () const
 read only access to member variable _n
 
std::string & getName ()
 read and write access to name
 
std::string const & getName () const
 read only access to name
 
bool operator() (W output[])
 wrapper that call the pure virtual operator() (T output[], const S input[]) from above
 
bool operator() (W output[], int input0)
 
bool operator() (W output[], int input0, int input1)
 
bool operator() (W output[], int input0, int input1, int input2)
 
bool operator() (W output[], int input0, int input1, int input2, int input3)
 

Additional Inherited Members

- Public Types inherited from olb::SuperF2D< T, W >
using identity_functor_type
 
- Public Types inherited from olb::GenericF< W, int >
using targetType
 
using sourceType
 
- Public Attributes inherited from olb::GenericF< W, int >
std::shared_ptr< GenericF< W, int > > _ptrCalcC
 memory management, frees resouces (calcClass)
 
- Protected Member Functions inherited from olb::SuperF2D< T, W >
 SuperF2D (SuperStructure< T, 2 > &superStructure, int targetDim)
 
- Protected Member Functions inherited from olb::GenericF< W, int >
 GenericF (int targetDim, int sourceDim)
 
- Protected Attributes inherited from olb::SuperIdentity2D< T, W >
FunctorPtr< SuperF2D< T, W > > _f
 
- Protected Attributes inherited from olb::SuperF2D< T, W >
SuperStructure< T, 2 > & _superStructure
 
std::vector< std::unique_ptr< BlockF2D< W > > > _blockF
 Super functors may consist of several BlockF2D<W> derived functors.
 

Detailed Description

template<typename T, typename W, int P>
class olb::SuperAbsoluteErrorLpNorm2D< T, W, P >

Absolute error norm functor.

Calculates "LpNorm(wantedF - f)"

Definition at line 67 of file superErrorNorm2D.h.

Constructor & Destructor Documentation

◆ SuperAbsoluteErrorLpNorm2D() [1/2]

template<typename T , typename W , int P>
template<typename DESCRIPTOR >
olb::SuperAbsoluteErrorLpNorm2D< T, W, P >::SuperAbsoluteErrorLpNorm2D ( SuperLattice< T, DESCRIPTOR > & sLattice,
FunctorPtr< SuperF2D< T, W > > && f,
FunctorPtr< AnalyticalF2D< T, W > > && wantedF,
FunctorPtr< SuperIndicatorF2D< T > > && indicatorF )

Definition at line 68 of file superErrorNorm2D.hh.

73 : SuperIdentity2D<T,W>([&]()
74{
75 using namespace functor_dsl;
76
77 return norm<P>(restrictF(wantedF.toShared(), sLattice) - f.toShared(),
78 indicatorF.toShared());
79}())
80{
81 this->getName() = "absErrorNormL" + std::to_string(P);
82}
std::string & getName()
read and write access to name
Definition genericF.hh:51
std::shared_ptr< SuperF2D< T, W > > restrictF(std::shared_ptr< AnalyticalF2D< T, W > > f, SuperLattice< T, DESCRIPTOR > &sLattice)
Returns restriction of a analytical functor f to the lattice sLattice.

◆ SuperAbsoluteErrorLpNorm2D() [2/2]

template<typename T , typename W , int P>
template<typename DESCRIPTOR >
olb::SuperAbsoluteErrorLpNorm2D< T, W, P >::SuperAbsoluteErrorLpNorm2D ( SuperLatticeF2D< T, DESCRIPTOR > & f,
FunctorPtr< AnalyticalF2D< T, W > > && wantedF,
FunctorPtr< SuperIndicatorF2D< T > > && indicatorF )

Definition at line 86 of file superErrorNorm2D.hh.

90 : SuperAbsoluteErrorLpNorm2D(f.getSuperLattice(),
91 f,
92 std::forward<decltype(wantedF)>(wantedF),
93 std::forward<decltype(indicatorF)>(indicatorF))
94{ }
SuperAbsoluteErrorLpNorm2D(SuperLattice< T, DESCRIPTOR > &sLattice, FunctorPtr< SuperF2D< T, W > > &&f, FunctorPtr< AnalyticalF2D< T, W > > &&wantedF, FunctorPtr< SuperIndicatorF2D< T > > &&indicatorF)

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