Public Member Functions | Protected Member Functions

gridripper::amr1d::Grad_O2_2 Class Reference

Second order approximation of derivatives with double grid spacing. More...

#include <Grad.h>

Inheritance diagram for gridripper::amr1d::Grad_O2_2:
gridripper::amr1d::Grad

List of all members.

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

Detailed Description

Second order approximation of derivatives with double grid spacing.

(For Richardson error estimation.)


Member Function Documentation

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.


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