#include <PrimFuncMethod.hpp>
Collaboration diagram for PrimFuncMthdCC< T >:

Public Member Functions | |
| void | PreProcess (PrimFuncMthdKernFactor< T > **the_kernel_factors, MultiArray< T > &u) |
| Prepares the method for given data (initializes the data structures and computes the cell integrals). | |
| void | AddIntegral (T factor, MultiArray< T > &u, MultiArray< T > &integral, MultiArray< T > *x_factor=NULL) |
| Computes the integral for a given 'u', multiplies it by a given factor and adds to a given vector. | |
| void | PostProcess () |
| Releases the allocated memory, ... | |
| PrimFuncMthdCC () | |
| Constructor. | |
| ~PrimFuncMthdCC () | |
| Destructor. | |
Method of use:
First, the the kernel should be described using the array of the pointers to the PrimFuncMthdKernFactor<T> structures and an object of the method should be created. Then you should preprocess the method for this kernel and the grid sizes of the grid function in the integrand. After that you may compute the integral for any grid functions on this grid as many times as you need using the Compute function of the method's object. At the end you should release the allocated memory etc. using PreProcess (or destroy the object).
| PrimFuncMthdCC< T >::PrimFuncMthdCC | ( | ) | [inline] |
Constructor.
| PrimFuncMthdCC< T >::~PrimFuncMthdCC | ( | ) | [inline] |
Destructor.
| void PrimFuncMthdCC< T >::PreProcess | ( | PrimFuncMthdKernFactor< T > ** | the_kernel_factors, | |
| MultiArray< T > & | u | |||
| ) | [inline] |
Prepares the method for given data (initializes the data structures and computes the cell integrals).
| [in] | the_kernel_factors | Data to preprocess for |
| [in] | u | The grid function in the integrand |
| void PrimFuncMthdCC< T >::AddIntegral | ( | T | factor, | |
| MultiArray< T > & | u, | |||
| MultiArray< T > & | integral, | |||
| MultiArray< T > * | x_factor = NULL | |||
| ) | [inline] |
Computes the integral for a given 'u', multiplies it by a given factor and adds to a given vector.
If x_factor != NULL then the function multiplies the computed integral also by the given grid function * x_factor. The values of this grid function should correspond to the grid-cell centers of the grid.
| [in] | factor | The factor to multiply the integral by |
| [in] | u | The grid function in the integrand |
| [in] | integral | To add the integral to |
| [in] | x_factor | The factor that depends on 'x' only |
| void PrimFuncMthdCC< T >::PostProcess | ( | ) | [inline] |
Releases the allocated memory, ...
1.5.2