MADNESS  0.10.1
Typedefs | Functions | Variables
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()

static double du_exact ( const coordT pt)
static

References sech().

Referenced by main().

◆ left_dirichlet()

static double left_dirichlet ( const coordT pt)
static

Referenced by main().

◆ left_neumann()

static double left_neumann ( const coordT pt)
static

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ right_dirichlet()

static double right_dirichlet ( const coordT pt)
static

Referenced by main().

◆ right_neumann()

static double right_neumann ( const coordT pt)
static

References sech().

Referenced by main().

◆ sech()

double sech ( double  val)

Referenced by du_exact(), and right_neumann().

◆ u_exact()

static double u_exact ( const coordT pt)
static

Referenced by main().

Variable Documentation

◆ init_lev

const int init_lev = 4
static

Referenced by main().

◆ k

const int k = 9
static

Referenced by main().

◆ test_axis

const int test_axis = 0
static

Referenced by main().

◆ thresh

const double thresh = 1.e-7
static

Referenced by compare(), and main().