MADNESS 0.10.1
testinnerext.cc File Reference
#include <madness/mra/mra.h>
#include <array>
Include dependency graph for testinnerext.cc:

Classes

class  alpha_functor
class  beta_functor
struct  gauss< T, NDIM >
struct  gauss_1d

Macros

#define END_TIMER(msg)
#define START_TIMER   world.gop.fence(); ttt=wall_time(); sss=cpu_time()

Typedefs

typedef std::shared_ptr< FunctionFunctorInterface< double, 3 > > functorT

Functions

static double alpha_func (const coord_3d &r)
static double beta_func (const coord_3d &r)
template<std::size_t NDIM>
void initialize (World &world)
bool is_like (double a, double b, double tol)
int main (int argc, char **argv)
bool test (std::string msg, double a, double b, double tol=thresh)
bool test_loose1 (std::string msg, double a, double b, double tol=thresh)
int test_partial_inner (World &world)
int test_tight_diffuse (World &world)

Variables

static const long k = 6
static const double L = 5.0*R
static const double R = 1.4
bool smalltest = true
double sss
static const double thresh = 1e-6
double ttt

Macro Definition Documentation

◆ END_TIMER

#define END_TIMER ( msg)
Value:
ttt=wall_time()-ttt; sss=cpu_time()-sss; if (world.rank()==0) printf("timer: %-20.20s %8.2fs %8.2fs\n", msg, sss, ttt)
static double ttt
Definition mcpfit.cc:57
static double sss
Definition mcpfit.cc:57
double wall_time()
Returns the wall time in seconds relative to an arbitrary origin.
Definition timers.cc:48
double cpu_time()
Definition test_list.cc:43

Referenced by main().

◆ START_TIMER

#define START_TIMER   world.gop.fence(); ttt=wall_time(); sss=cpu_time()

Typedef Documentation

◆ functorT

typedef std::shared_ptr< FunctionFunctorInterface<double,3> > functorT

Function Documentation

◆ alpha_func()

double alpha_func ( const coord_3d & r)
static

◆ beta_func()

double beta_func ( const coord_3d & r)
static

◆ initialize()

◆ is_like()

bool is_like ( double a,
double b,
double tol )

References a, std::abs(), and b.

Referenced by main().

◆ main()

◆ test()

bool test ( std::string msg,
double a,
double b,
double tol = thresh )

References a, std::abs(), b, ok(), madness::print(), and thresh.

◆ test_loose1()

bool test_loose1 ( std::string msg,
double a,
double b,
double tol = thresh )

References a, b, test(), and thresh.

Referenced by test_partial_inner().

◆ test_partial_inner()

◆ test_tight_diffuse()

Variable Documentation

◆ k

const long k = 6
static

◆ L

const double L = 5.0*R
static

◆ R

const double R = 1.4
static

◆ smalltest

bool smalltest = true

◆ sss

double sss

◆ thresh

const double thresh = 1e-6
static

◆ ttt

double ttt