Chombo + EB + MF
3.2
|
#include <OneDIntegrator.H>
Public Member Functions | |
OneDIntegrator () | |
Default constructor. More... | |
virtual | ~OneDIntegrator () |
Default destructor. More... | |
Real | integral (const RefCountedPtr< BaseOneDFunc > &a_func, const Real &a_xstart, const Real &a_xend, const int &a_num_bits) const |
Gives an approximation to the numerical integral of a function over a region
|
inline |
Default constructor.
|
inlinevirtual |
Default destructor.
References integral().
Real OneDIntegrator::integral | ( | const RefCountedPtr< BaseOneDFunc > & | a_func, |
const Real & | a_xstart, | ||
const Real & | a_xend, | ||
const int & | a_num_bits | ||
) | const |
integrate the function over the region dividing the by dividing up the region of integration into bits of fixed size = size/num_bits (midpoint rule)