DUNE PDELab (git)

persistentcontainer.hh
1// SPDX-FileCopyrightText: Copyright © 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
8#include <dune/grid/utility/persistentcontainer.hh>
9
10#if HAVE_ALBERTA
11#include <dune/grid/utility/persistentcontainervector.hh>
12
13namespace 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 {
23 typedef PersistentContainerVector< AlbertaGrid< dim, dimworld >, typename AlbertaGrid< dim, dimworld >::HierarchicIndexSet, std::vector< T > > Base;
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
Traits::HierarchicIndexSet HierarchicIndexSet
type of hierarchic index set
Definition: agrid.hh:157
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)