Dune Core Modules (2.6.0)

persistentcontainer.hh
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
6#include <dune/grid/utility/persistentcontainer.hh>
7
8#if HAVE_ALBERTA
9#include <dune/grid/utility/persistentcontainervector.hh>
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 {
21 typedef PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< T > > Base;
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
Traits::HierarchicIndexSet HierarchicIndexSet
type of hierarchic index set
Definition: agrid.hh:187
Dune namespace.
Definition: alignedallocator.hh:10
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)