version 3.11-dev
Loading...
Searching...
No Matches
pq2/dofhelper.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-FileCopyrightText: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
17#ifndef DUMUX_DISCRETIZATION_PQ2_DOF_HELPER_HH
18#define DUMUX_DISCRETIZATION_PQ2_DOF_HELPER_HH
19
20#include <dune/common/fvector.hh>
22
23namespace Dumux {
24
34template<class GridView>
36{
37 using Scalar = typename GridView::ctype;
38 static constexpr int dim = GridView::dimension;
39 using GlobalPosition = Dune::FieldVector<Scalar, GridView::dimensionworld>;
40
44 template<class DofMapper, class Element, class LocalKey, class IdSet>
45 static std::size_t dofIndex(const DofMapper& m, const Element& e,
46 const LocalKey& lk, const IdSet& /*idSet*/)
47 { return dofIndex(m, e, lk); }
48};
49
50} // namespace Dumux
51
52#endif // DUMUX_DISCRETIZATION_PQ2_DOF_HELPER_HH
Default Dof helper for finite-element discretizations providing dof-related utility functions....
Definition fedofhelper.hh:34
Default Dof helper for finite-element discretizations providing dof-related utility functions....
Definition adapt.hh:17
DOF index and position helper for order-2 Lagrange discretizations.
Definition pq2/dofhelper.hh:36
Dune::FieldVector< Scalar, GridView::dimensionworld > GlobalPosition
Definition pq2/dofhelper.hh:39
typename GridView::ctype Scalar
Definition pq2/dofhelper.hh:37
static constexpr int dim
Definition pq2/dofhelper.hh:38
static std::size_t dofIndex(const DofMapper &m, const Element &e, const LocalKey &lk, const IdSet &)
Definition pq2/dofhelper.hh:45