Second order approximation of derivatives with double grid spacing. More...
#include <Grad.h>
Public Member Functions | |
Grad_O2_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 |
Second order approximation of derivatives with double grid spacing.
(For Richardson error estimation.)
void gridripper::amr1d::Grad_O2_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_O2_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_O2_2::getNumVelocity | ( | ) | [inline, virtual] |
Gets the error propagation velocity.
Implements gridripper::amr1d::Grad.