Numerical approximation of derivatives with double grid spacing (For Richardson error estimation. More...
#include <Grad.h>
Public Member Functions | |
Grad_O421_2 (const PDE &pde, int level) | |
int | getNumVelocity () |
Gets the error propagation velocity. | |
void | d (const Grid &g, PDE *pde, int i, GReal_t *result, int size) |
Approximation of derivative. | |
void | d2 (const Grid &g, PDE *pde, int i, GReal_t *result, int size) |
Approximation of second derivative. | |
Grad * | create (const PDE &pde, int level) const |
string | toString () const |
Protected Member Functions | |
Grad * | clone () const |
Numerical approximation of derivatives with double grid spacing (For Richardson error estimation.
) It is calculated in fourth order, except on edges where linear and second order approximations are applied.
void gridripper::amr1d::Grad_O421_2::d | ( | const Grid & | g, | |
PDE * | pde, | |||
int | i, | |||
GReal_t * | result, | |||
int | size | |||
) | [virtual] |
Approximation of derivative.
Implements gridripper::amr1d::Grad.
void gridripper::amr1d::Grad_O421_2::d2 | ( | const Grid & | g, | |
PDE * | pde, | |||
int | i, | |||
GReal_t * | result, | |||
int | size | |||
) | [virtual] |
Approximation of second derivative.
Implements gridripper::amr1d::Grad.
int gridripper::amr1d::Grad_O421_2::getNumVelocity | ( | ) | [inline, virtual] |
Gets the error propagation velocity.
Implements gridripper::amr1d::Grad.