MADNESS 0.10.1
testdiff1D.cc File Reference

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

#include <madness/mra/mra.h>
Include dependency graph for testdiff1D.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)
static double u_exact (const coordT &pt)

Variables

static const int init_lev = 2
static const int k = 9
static const double Length = 4.
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

Referenced by main().

◆ left_dirichlet()

double left_dirichlet ( const coordT & pt)
static

Referenced by main().

◆ left_neumann()

double left_neumann ( const coordT & pt)
static

Referenced by main().

◆ main()

◆ right_dirichlet()

double right_dirichlet ( const coordT & pt)
static

References Length.

Referenced by main().

◆ right_neumann()

double right_neumann ( const coordT & pt)
static

Referenced by main().

◆ u_exact()

double u_exact ( const coordT & pt)
static

Referenced by main().

Variable Documentation

◆ init_lev

const int init_lev = 2
static

Referenced by main().

◆ k

const int k = 9
static

◆ Length

const double Length = 4.
static

◆ test_axis

const int test_axis = 0
static

Referenced by main().

◆ thresh

const double thresh = 1.e-7
static