Calculates 1st Sobolev norm of the difference on two grids in the polar directions, assuming that the consecutive components are real and imarinary parts of the spectral representation of the field with respect to the spherical harmonics. More...
#include <Sobolev1Error.h>
Public Member Functions | |
Sobolev1Error (const PDE &pde, const string &arg) throw (IllegalArgumentException&) | |
void | calcErrors (const PDE *pde, const Grad *d, const Grid &g, const Grid &g2, GReal_t t, double c, tvalarray< double > &errors) const |
Calculates 1st Sobolev norm of the difference on two grids in the polar directions, assuming that the consecutive components are real and imarinary parts of the spectral representation of the field with respect to the spherical harmonics.
It assumes that the independent components' vector begin with the spectral coefficients of the scalar field, and that the constraints' vector begins with the radial derivative of this field.