dune-pdelab  2.0.0
Public Types | Public Member Functions | List of all members
Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection > Class Template Reference

Class for automatic adaptation of the grid. More...

#include <dune/pdelab/adaptivity/adaptivity.hh>

Public Types

typedef unordered_map< ID,
std::vector< typename
U::ElementType > > 
MapType
 

Public Member Functions

 GridAdaptor (const GFSU &gfs)
 The constructor. More...
 
void backupData (Grid &grid, GFSU &gfsu, Projection &projection, U &u, MapType &transfer_map)
 
void replayData (Grid &grid, GFSU &gfsu, Projection &projection, U &u, const MapType &transfer_map)
 

Detailed Description

template<class Grid, class GFSU, class U, class Projection>
class Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection >

Class for automatic adaptation of the grid.

The GridAdaptor capsules the act of deciding which Elems to refine and coarsen, adapting the grid, and transfering the solution from the old grid to the new one. Currrently this only works for scalar solutions.

Template Parameters
GridType of the grid we want to adapt
GFSUType of ansatz space, we need to update it after adaptation
UContainer class of the solution
ProjectionProjection used when Elems vanish

Member Typedef Documentation

template<class Grid, class GFSU, class U, class Projection>
typedef unordered_map<ID,std::vector<typename U::ElementType> > Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection >::MapType

Constructor & Destructor Documentation

template<class Grid, class GFSU, class U, class Projection>
Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection >::GridAdaptor ( const GFSU &  gfs)
inlineexplicit

The constructor.

Parameters
grid_The grid we want to adapt
gfsu_The ansatz space, we need to update it
projection_The Projection used when Elems vanish

Member Function Documentation

template<class Grid, class GFSU, class U, class Projection>
void Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection >::backupData ( Grid &  grid,
GFSU &  gfsu,
Projection &  projection,
U &  u,
MapType transfer_map 
)
inline
template<class Grid, class GFSU, class U, class Projection>
void Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection >::replayData ( Grid &  grid,
GFSU &  gfsu,
Projection &  projection,
U &  u,
const MapType transfer_map 
)
inline

References e.

Referenced by Dune::PDELab::adapt_grid().


The documentation for this class was generated from the following file: