dune-pdelab 2.7-git
|
Class for automatic adaptation of the grid. More...
#include <dune/pdelab/adaptivity/adaptivity.hh>
Public Types | |
typedef std::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) |
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.
Grid | Type of the grid we want to adapt |
GFSU | Type of ansatz space, we need to update it after adaptation |
U | Container class of the solution |
Projection | Projection used when Elems vanish |
typedef std::unordered_map<ID,std::vector<typename U::ElementType> > Dune::PDELab::GridAdaptor< Grid, GFSU, U, Projection >::MapType |
|
inlineexplicit |
The constructor.
gfs | The ansatz space, we need to update it |
|
inline |
|
inline |