dune-grid  2.9.0
albertagrid/persistentcontainer.hh
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
2 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 // vi: set et ts=4 sw=2 sts=2:
5 #ifndef DUNE_ALBERTA_PERSISTENTCONTAINER_HH
6 #define DUNE_ALBERTA_PERSISTENTCONTAINER_HH
7 
9 
10 #if HAVE_ALBERTA
12 
13 namespace Dune
14 {
15 
16  // PersistentContainer for AlbertaGrid
17  // -----------------------------------
18 
19  template< int dim, int dimworld, class T >
20  class PersistentContainer< AlbertaGrid< dim, dimworld >, T >
21  : public PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< T > >
22  {
24 
25  public:
26  typedef typename Base::Grid Grid;
27  typedef typename Base::Value Value;
28 
29  PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
30  : Base( grid.hierarchicIndexSet(), codim, value )
31  {}
32  };
33 
34 } // end namespace Dune
35 
36 #endif // #if HAVE_ALBERTA
37 
38 #endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
Include standard header files.
Definition: agrid.hh:60
[ provides Dune::Grid ]
Definition: agrid.hh:109
Definition: albertagrid/indexsets.hh:42
PersistentContainer(const Grid &grid, int codim, const Value &value=Value())
Definition: albertagrid/persistentcontainer.hh:29
Base::Grid Grid
Definition: albertagrid/persistentcontainer.hh:26
Base::Value Value
Definition: albertagrid/persistentcontainer.hh:27
A class for storing data during an adaptation cycle.
Definition: utility/persistentcontainer.hh:22
Base::Value Value
Definition: utility/persistentcontainer.hh:27
const Grid & grid() const
Definition: persistentcontainermap.hh:114
vector-based implementation of the PersistentContainer
Definition: persistentcontainervector.hh:51
Vector::value_type Value
Definition: persistentcontainervector.hh:57
G Grid
Definition: persistentcontainervector.hh:55