GridConstInterpolation< T > Class Template Reference

Piecewise constant interpolation onto a grid. More...

#include <SGrid.hpp>

Inheritance diagram for GridConstInterpolation< T >:

Inheritance graph
[legend]
Collaboration diagram for GridConstInterpolation< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Rewind ()
 Sets the values to zero.
void AddGridVec (T factor, GridVec< T > &vec)
 Adds a grid function to the current combination.
 GridConstInterpolation (MultiVector< T > &the_dst, int the_vec_no=0, int ipc=0)
 Constructor.

Detailed Description

template<typename T>
class GridConstInterpolation< T >

Piecewise constant interpolation onto a grid.

Considers the given grid function as a cell-centered grid function with the constant values over the grid cells. This function is mapped to the another cell-centered cellwise constant grid function by the averaging the values over the cells.


Constructor & Destructor Documentation

template<typename T>
GridConstInterpolation< T >::GridConstInterpolation ( MultiVector< T > &  the_dst,
int  the_vec_no = 0,
int  ipc = 0 
) [inline]

Constructor.

Parameters:
[in] the_dst To accumulate the sparse grid solution in
[in] the_vec_no # of the grid function in the GridVec's
[in] ipc Number of the free indices per grid cell


Member Function Documentation

template<typename T>
void GridConstInterpolation< T >::Rewind (  )  [inline, virtual]

Sets the values to zero.

Implements GridVecInterpolation< T >.

template<typename T>
void GridConstInterpolation< T >::AddGridVec ( factor,
GridVec< T > &  vec 
) [inline, virtual]

Adds a grid function to the current combination.

Parameters:
[in] factor The factor to multiply the grid function by
[in] vec The grid function to add

Implements GridVecInterpolation< T >.


The documentation for this class was generated from the following files:
Generated on Fri Sep 21 12:34:11 2007 for SG2 by  doxygen 1.5.2