dune-grid 3.0-git
albertagrid/persistentcontainer.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_ALBERTA_PERSISTENTCONTAINER_HH
4#define DUNE_ALBERTA_PERSISTENTCONTAINER_HH
5
7
8#if HAVE_ALBERTA
10
11namespace Dune
12{
13
14 // PersistentContainer for AlbertaGrid
15 // -----------------------------------
16
17 template< int dim, int dimworld, class T >
18 class PersistentContainer< AlbertaGrid< dim, dimworld >, T >
19 : public PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< T > >
20 {
22
23 public:
24 typedef typename Base::Grid Grid;
25 typedef typename Base::Value Value;
26
27 PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
28 : Base( grid.hierarchicIndexSet(), codim, value )
29 {}
30 };
31
32} // end namespace Dune
33
34#endif // #if HAVE_ALBERTA
35
36#endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
Include standard header files.
Definition agrid.hh:60
[ provides Dune::Grid ]
Definition agrid.hh:140
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition albertagrid/persistentcontainer.hh:27
Base::Grid Grid
Definition albertagrid/persistentcontainer.hh:24
Base::Value Value
Definition albertagrid/persistentcontainer.hh:25
A class for storing data during an adaptation cycle.
Definition utility/persistentcontainer.hh:20
Base::Value Value
Definition utility/persistentcontainer.hh:25
const Grid & grid() const
Definition persistentcontainermap.hh:112
vector-based implementation of the PersistentContainer
Definition persistentcontainervector.hh:49
Vector::value_type Value
Definition persistentcontainervector.hh:55
G Grid
Definition persistentcontainervector.hh:53