dune-grid  2.2.0
albertagrid/persistentcontainer.hh
Go to the documentation of this file.
00001 #ifndef DUNE_ALBERTA_PERSISTENTCONTAINER_HH
00002 #define DUNE_ALBERTA_PERSISTENTCONTAINER_HH
00003 
00004 #include <dune/grid/utility/persistentcontainer.hh>
00005 
00006 #if HAVE_ALBERTA
00007 
00008 namespace Dune
00009 {
00010 
00011   // PersistentContainer for AlbertaGrid
00012   // -----------------------------------
00013 
00014   template< int dim, int dimworld, class Data, class Allocator >
00015   class PersistentContainer< AlbertaGrid< dim, dimworld >, Data, Allocator >
00016   : public PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< Data, Allocator > >
00017   {
00018     typedef PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< Data, Allocator > > Base;
00019 
00020   public:
00021     typedef AlbertaGrid< dim, dimworld > GridType;
00022 
00025     PersistentContainer ( const GridType &grid, const int codim, const Allocator &allocator = Allocator() )
00026     : Base( grid, codim, grid.hierarchicIndexSet(), 1.1, allocator )
00027     {}
00028   };
00029 
00030 } // end namespace Dune
00031 
00032 #endif // #if HAVE_ALBERTA
00033 
00034 #endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH