Dune-Functions 2.12-git
Loading...
Searching...
No Matches
crouzeixraviartbasis.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_FUNCTIONS_FUNCTIONSPACEBASES_CROUZEIXRAVIARTBASIS_HH
8#define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_CROUZEIXRAVIARTBASIS_HH
9
12
13
14namespace Dune::Functions
15{
16
17namespace BasisFactory {
18
27template<class Dummy=void>
29{
30 return [](const auto& gridView) {
31 // The RannacherTurekPreBasis implements Crouzeix-Raviart FE if the grid is simplicial.
32 return RannacherTurekPreBasis<std::decay_t<decltype(gridView)>>(gridView);
33 };
34}
35
36} // end namespace BasisFactory
37
38
39
40
52template<typename GV>
54
55} // end namespace Dune::Functions
56
57#endif // DUNE_FUNCTIONS_FUNCTIONSPACEBASES_CROUZEIXRAVIARTBASIS_HH
Global basis for given pre-basis.
Definition defaultglobalbasis.hh:53
Pre-basis for a Rannacher-Turek basis.
Definition rannacherturekbasis.hh:59
auto crouzeixRaviart()
Create a pre-basis factory that can create a Crouzeix-Raviart pre-basis.
Definition crouzeixraviartbasis.hh:28
Definition monomialset.hh:19