3#ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
4#define DUNE_ALU_PERSISTENTCONTAINER_HH
6#include <dune/grid/utility/persistentcontainer.hh>
10#include <dune/grid/utility/persistentcontainervector.hh>
18 template<
class G,
class T >
19 class ALUGridPersistentContainer
20 :
public PersistentContainerVector< G, typename G::HierarchicIndexSet, std::vector< T > >
22 typedef PersistentContainerVector< G, typename G::HierarchicIndexSet, std::vector< T > > Base;
25 typedef typename Base::Grid Grid;
26 typedef typename Base::Value Value;
28 ALUGridPersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
29 : Base( grid.hierarchicIndexSet(), codim, value )
37 template<
int dim,
int dimworld,
class T >
38 class PersistentContainer< ALUConformGrid< dim, dimworld >, T >
39 :
public ALUGridPersistentContainer< ALUConformGrid< dim, dimworld >, T >
41 typedef ALUGridPersistentContainer< ALUConformGrid< dim, dimworld >, T > Base;
44 typedef typename Base::Grid Grid;
45 typedef typename Base::Value Value;
47 PersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
48 : Base( grid, codim, value )
52 template<
int dim,
int dimworld,
class T >
53 class PersistentContainer< ALUCubeGrid< dim, dimworld >, T >
54 :
public ALUGridPersistentContainer< ALUCubeGrid< dim, dimworld >, T >
56 typedef ALUGridPersistentContainer< ALUCubeGrid< dim, dimworld >, T > Base;
59 typedef typename Base::Grid Grid;
60 typedef typename Base::Value Value;
62 PersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
63 : Base( grid, codim, value )
67 template<
int dim,
int dimworld,
class T >
68 class PersistentContainer< ALUSimplexGrid< dim, dimworld >, T >
69 :
public ALUGridPersistentContainer< ALUSimplexGrid< dim, dimworld >, T >
71 typedef ALUGridPersistentContainer< ALUSimplexGrid< dim, dimworld >, T > Base;
74 typedef typename Base::Grid Grid;
75 typedef typename Base::Value Value;
77 PersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
78 : Base( grid, codim, value )
82 template<
int dim,
int dimworld, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm,
class T >
83 class PersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T >
84 :
public ALUGridPersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T >
86 typedef ALUGridPersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T > Base;
89 typedef typename Base::Grid Grid;
90 typedef typename Base::Value Value;
92 PersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
93 : Base( grid, codim, value )
97 template<
int dim,
int dimworld, ALU2DSPACE ElementType elType,
class T >
98 class PersistentContainer< ALU2dGrid< dim, dimworld, elType >, T >
99 :
public ALUGridPersistentContainer< ALU2dGrid< dim, dimworld, elType >, T >
101 typedef ALUGridPersistentContainer< ALU2dGrid< dim, dimworld, elType >, T > Base;
104 typedef typename Base::Grid Grid;
105 typedef typename Base::Value Value;
107 PersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
108 : Base( grid, codim, value )
112 template< ALU3dGr
idElementType elType,
class Comm,
class T >
113 class PersistentContainer< ALU3dGrid< elType, Comm >, T >
114 :
public ALUGridPersistentContainer< ALU3dGrid< elType, Comm >, T >
116 typedef ALUGridPersistentContainer< ALU3dGrid< elType, Comm >, T > Base;
119 typedef typename Base::Grid Grid;
120 typedef typename Base::Value Value;
122 PersistentContainer (
const Grid &grid,
int codim,
const Value &value = Value() )
123 : Base( grid, codim, value )
Provides base classes for ALUGrid.
Dune namespace.
Definition: alignment.hh:14