MADNESS 0.10.1
|
#include <madness/world/world.h>
#include <madness/world/thread.h>
#include <madness/world/worldhash.h>
#include <madness/world/worldhashmap.h>
#include <madness/world/range.h>
#include <madness/world/timers.h>
#include <madness/world/atomicint.h>
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <algorithm>
Classes | |
class | Peasant |
class | Worker |
Functions | |
void | do_test_random (ConcurrentHashMap< int, double > &a, size_t &count, double &sum) |
double | drand () |
void | errmsg (const char *msg, int status) |
int | main (int argc, char **argv) |
vector< int > | random_perm (int n) |
void | split (const Range< ConcurrentHashMap< int, int >::iterator > &range) |
void | test_accessors () |
void | test_coverage () |
void | test_random () |
void | test_thread () |
void | test_time () |
Variables | |
madness::AtomicInt | ndone |
bool | smalltest = false |
void do_test_random | ( | ConcurrentHashMap< int, double > & | a, |
size_t & | count, | ||
double & | sum | ||
) |
References a, drand(), and sum.
Referenced by Worker::run(), and test_random().
double drand | ( | ) |
Referenced by do_test_random(), and random_perm().
void errmsg | ( | const char * | msg, |
int | status | ||
) |
References status.
Referenced by madness::QCCalculationParametersBase::fromstring(), madness::QCParameter::not_allowed_errmsg(), madness::CCIntermediatePotentials::operator()(), madness::position_stream(), madness::Molecule::position_stream_in_library(), madness::position_stream_to_word(), madness::Molecule::read_file(), madness::QCCalculationParametersBase::read_input(), madness::QCCalculationParametersBase::read_internal(), madness::QCCalculationParametersBase::read_quotes(), madness::Molecule::read_structure_from_library(), madness::Molecule::read_xyz(), test_not_allowed(), test_trailing_characters(), test_type_conversion3(), and test_type_conversion4().
int main | ( | int | argc, |
char ** | argv | ||
) |
References madness::finalize(), madness::initialize(), smalltest, test_accessors(), test_coverage(), test_random(), test_thread(), and test_time().
vector< int > random_perm | ( | int | n | ) |
References drand(), madness::swap(), and v.
Referenced by test_time().
void split | ( | const Range< ConcurrentHashMap< int, int >::iterator > & | range | ) |
References c, madness::Range< iteratorT >::size(), and split().
Referenced by madness::LRFunctorF12< T, NDIM, LDIM >::operator()(), madness::redirectio(), split(), and test_coverage().
void test_coverage | ( | ) |
void test_random | ( | ) |
References a, do_test_random(), and sum.
Referenced by main().
void test_time | ( | ) |
References a, madness::cpu_time(), MADNESS_ASSERT, random_perm(), and v.
Referenced by main().
madness::AtomicInt ndone |
Referenced by Worker::run(), Peasant::run(), test_accessors(), and test_thread().
bool smalltest = false |
Referenced by main().