Dune Core Modules (2.9.0)

persistentcontainer.hh
1#ifndef DUNE_SPGRID_PERSISTENTCONTAINER_HH
2#define DUNE_SPGRID_PERSISTENTCONTAINER_HH
3
4#include <vector>
5
6#include <dune/grid/utility/persistentcontainer.hh>
7#include <dune/grid/utility/persistentcontainervector.hh>
8
9#include <dune/grid/spgrid/declaration.hh>
10
11namespace Dune
12{
13
14 // PersistentContainer for SPGrid
15 // ------------------------------
16
17 template< class ct, int dim, template< int > class Ref, class Comm, class T >
18 class PersistentContainer< SPGrid< ct, dim, Ref, Comm >, T >
19 : public PersistentContainerVector< SPGrid< ct, dim, Ref, Comm >, typename SPGrid< ct, dim, Ref, Comm >::HierarchicIndexSet, std::vector< T > >
20 {
21 typedef PersistentContainerVector< SPGrid< ct, dim, Ref, Comm >, typename SPGrid< ct, dim, Ref, Comm >::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} // namespace Dune
33
34#endif // #ifndef DUNE_SPGRID_PERSISTENTCONTAINER_HH
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)