version 3.8
indextraits.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3//
4// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_COMMON_INDEX_TRAITS_HH
13#define DUMUX_COMMON_INDEX_TRAITS_HH
14
15#include <cstdint>
16
17namespace Dumux {
18
24template<class GridView>
26{
27 using GridIndex = typename GridView::IndexSet::IndexType;
28 using LocalIndex = unsigned int;
29 using SmallLocalIndex = std::uint_least8_t;
30};
31
32} // namespace Dumux
33
34#endif
Definition: adapt.hh:17
Structure to define the index types used for grid and local indices.
Definition: indextraits.hh:26
typename GridView::IndexSet::IndexType GridIndex
Definition: indextraits.hh:27
std::uint_least8_t SmallLocalIndex
Definition: indextraits.hh:29
unsigned int LocalIndex
Definition: indextraits.hh:28