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, ALUGr
idElementType eltype, ALUGr
idRefinementType refinementtype,
class Comm,
class T >
38 class PersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T >
39 :
public ALUGridPersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T >
41 typedef ALUGridPersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, 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, ALU2DSPACE ElementType elType,
class T >
53 class PersistentContainer< ALU2dGrid< dim, dimworld, elType >, T >
54 :
public ALUGridPersistentContainer< ALU2dGrid< dim, dimworld, elType >, T >
56 typedef ALUGridPersistentContainer< ALU2dGrid< dim, dimworld, elType >, 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< ALU3dGr
idElementType elType,
class Comm,
class T >
68 class PersistentContainer< ALU3dGrid< elType, Comm >, T >
69 :
public ALUGridPersistentContainer< ALU3dGrid< elType, Comm >, T >
71 typedef ALUGridPersistentContainer< ALU3dGrid< elType, Comm >, 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 )
Provides base classes for ALUGrid.
Dune namespace.
Definition: alignment.hh:10