MADNESS
0.10.1
|
A simple example of projecting and using MADNESS functions. More...
Functions | |
double | gaussian (const coord_3d &r) |
C++ function for projecting the Gaussian test function. More... | |
int | main (int argc, char **argv) |
Main function. Project the function and compute the integrals. More... | |
A simple example of projecting and using MADNESS functions.
This example projects a simple Gaussian function,
into the MADNESS adaptive basis and computes several integrals:
int main | ( | int | argc, |
char ** | argv | ||
) |
Main function. Project the function and compute the integrals.
[in] | argc | The number of command-line arguments. |
[in] | argv | The command-line arguments. |
References SafeMPI::COMM_WORLD, madness::CoulombOperator(), e(), madness::finalize(), madness::g, madness::initialize(), madness::inner(), op(), madness::print(), madness::FunctionDefaults< NDIM >::set_cubic_cell(), and madness::startup().