dune-assembler 2.12
Loading...
Searching...
No Matches
utility.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
5// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
6
7#ifndef DUNE_ASSEMBLER_UTILITY_HH
8#define DUNE_ASSEMBLER_UTILITY_HH
9
11
12namespace Dune::Assembler::Impl {
13
14template <class Node>
15auto localIndices (const Node& node)
16{
17 return Dune::range(node.localIndex(0), node.localIndex(0) + node.size());
18}
19
20} // end namespace Dune::Assembler::Impl
21
22#endif // DUNE_ASSEMBLER_UTILITY_HH
static constexpr IntegralRange< T > range(T from, T to) noexcept