dune-grid  2.2.0
albertagrid/persistentcontainer.hh
Go to the documentation of this file.
1 #ifndef DUNE_ALBERTA_PERSISTENTCONTAINER_HH
2 #define DUNE_ALBERTA_PERSISTENTCONTAINER_HH
3 
5 
6 #if HAVE_ALBERTA
7 
8 namespace Dune
9 {
10 
11  // PersistentContainer for AlbertaGrid
12  // -----------------------------------
13 
14  template< int dim, int dimworld, class Data, class Allocator >
15  class PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator >
16  : public PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< Data, Allocator > >
17  {
19 
20  public:
22 
25  PersistentContainer ( const GridType &grid, const int codim, const Allocator &allocator = Allocator() )
26  : Base( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
27  {}
28  };
29 
30 } // end namespace Dune
31 
32 #endif // #if HAVE_ALBERTA
33 
34 #endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH