SparseGridTable< T > Class Template Reference

The simplified grid table with the entries consisting of GridVec<T>. More...

#include <SGrid.hpp>

Inheritance diagram for SparseGridTable< T >:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void CreateGridVec (Array< int > &position, GridVec< T > &vec)=0
 User-defined function that resets the sizes of the grid function assinged to a given grid table position.
virtual GridVec< T > & Solution (GridVec< T > &vec)
 User-defined function that returns the reference to the solution kept in the contents of a given grid table entry.
virtual void InitSolution (GridVec< T > &sol)
 User-defined function that initializes the grid function, for ex. sets the initial conditions. This function should not return any value but may throw an exception on an error.
virtual void ComputeSolution (GridVec< T > &sol)
 SparseGridTable ()
 The dummy constructor.
 SparseGridTable (int the_dim, int max_level=0)
 Creates a blank table.

Detailed Description

template<typename T>
class SparseGridTable< T >

The simplified grid table with the entries consisting of GridVec<T>.


Constructor & Destructor Documentation

template<typename T>
SparseGridTable< T >::SparseGridTable (  )  [inline]

The dummy constructor.

template<typename T>
SparseGridTable< T >::SparseGridTable ( int  the_dim,
int  max_level = 0 
) [inline]

Creates a blank table.

Parameters:
[in] the_dim The dimensionality
[in] max_level The finest level


Member Function Documentation

template<typename T>
virtual void SparseGridTable< T >::CreateGridVec ( Array< int > &  position,
GridVec< T > &  vec 
) [pure virtual]

User-defined function that resets the sizes of the grid function assinged to a given grid table position.

By this function the user provides the method of translation of the positions to grid sizes

Parameters:
[in] position Position in the grid table
[in] vec The grid function to reset

Implements SGridTable< T, GridVec< T > >.

template<typename T>
virtual GridVec<T>& SparseGridTable< T >::Solution ( GridVec< T > &  vec  )  [inline, virtual]

User-defined function that returns the reference to the solution kept in the contents of a given grid table entry.

Parameters:
[in] vec The entry of the grid table

Implements SGridTable< T, GridVec< T > >.

template<typename T>
virtual void SparseGridTable< T >::InitSolution ( GridVec< T > &  sol  )  [inline, virtual]

User-defined function that initializes the grid function, for ex. sets the initial conditions. This function should not return any value but may throw an exception on an error.

Parameters:
[in] sol The grid function to place the solution in

Reimplemented from SGridTable< T, GridVec< T > >.

template<typename T>
virtual void SparseGridTable< T >::ComputeSolution ( GridVec< T > &  sol  )  [inline, virtual]

User-defined function that computes the solution on one grid. This function should not return any value but may throw an exception on an error.

Parameters:
[in] sol The grid function to place the solution in

Reimplemented from SGridTable< T, GridVec< T > >.


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