dune-grid
2.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
grid
albertagrid
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
6
#include <
dune/grid/utility/persistentcontainer.hh
>
7
8
#if HAVE_ALBERTA
9
#include <
dune/grid/utility/persistentcontainervector.hh
>
10
11
namespace
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
Generated on Mon Nov 24 2014 21:02:50 for dune-grid by
1.8.1.2