Programmierpraktikum NPDGL I
|
operator computing the \(L^2(\Omega)\) error of two discrete functions Mehr ...
#include <error.hh>
Öffentliche Methoden | |
L2Error (Grid &grid) | |
constructor | |
template<class DofVecType > | |
double | apply (const DofVecType &U, const DofVecType &V) const |
applies the error computation |
operator computing the \(L^2(\Omega)\) error of two discrete functions
This operator can be used to compute the error
\[ \| u_h - v_h \|_{L^2} \]
between two discrete finite volume functions.
L2Error::L2Error | ( | Grid & | grid | ) | [inline] |
constructor
This defines the used discretization by initializing the underlying grid
grid | the underlying grid |
double L2Error::apply | ( | const DofVecType & | U, |
const DofVecType & | V | ||
) | const [inline] |
applies the error computation
U | Dof vector of the first discrete function \( u_h \) |
V | Dov vector of the second discrete function \( v_h \) |
DofVecType | Type which needs to be derived from DofVectorInterface |