MADNESS 0.10.1
testdiff1Db.cc File Reference

testing for diff() in 1D More...

#include <madness/mra/mra.h>
Include dependency graph for testdiff1Db.cc:

Typedefs

typedef Vector< double, 1 > coordT
typedef FunctionFactory< double, 1 > factoryT
typedef Function< double, 1 > functionT
typedef Tensor< double > tensorT

Functions

int compare (World &world, functionT test, functionT exact, const char *str)
static double du_exact (const coordT &pt)
static double left_dirichlet (const coordT &pt)
static double left_neumann (const coordT &pt)
int main (int argc, char **argv)
static double right_dirichlet (const coordT &pt)
static double right_neumann (const coordT &pt)
double sech (double val)
static double u_exact (const coordT &pt)

Variables

static const int init_lev = 4
static const int k = 9
static const int test_axis = 0
static const double thresh = 1.e-7

Detailed Description

testing for diff() in 1D

Typedef Documentation

◆ coordT

typedef Vector<double,1> coordT

◆ factoryT

typedef FunctionFactory<double,1> factoryT

◆ functionT

typedef Function<double,1> functionT

◆ tensorT

typedef Tensor<double> tensorT

Function Documentation

◆ compare()

int compare ( World & world,
functionT test,
functionT exact,
const char * str )

◆ du_exact()

double du_exact ( const coordT & pt)
static

References sech().

◆ left_dirichlet()

double left_dirichlet ( const coordT & pt)
static

◆ left_neumann()

double left_neumann ( const coordT & pt)
static

◆ main()

◆ right_dirichlet()

double right_dirichlet ( const coordT & pt)
static

◆ right_neumann()

double right_neumann ( const coordT & pt)
static

References sech().

◆ sech()

double sech ( double val)

Referenced by du_exact(), and right_neumann().

◆ u_exact()

double u_exact ( const coordT & pt)
static

Variable Documentation

◆ init_lev

const int init_lev = 4
static

◆ k

const int k = 9
static

◆ test_axis

const int test_axis = 0
static

◆ thresh

const double thresh = 1.e-7
static