| 1 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 2 |
// vi: set et ts=4 sw=2 sts=2: |
| 3 |
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 4 |
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception |
| 5 |
#ifndef DUNE_LAGRANGEBASIS_HH |
| 6 |
#define DUNE_LAGRANGEBASIS_HH |
| 7 |
|
| 8 |
#include <fstream> |
| 9 |
#include <dune/common/exceptions.hh> |
| 10 |
|
| 11 |
#include <dune/localfunctions/utility/defaultbasisfactory.hh> |
| 12 |
#include <dune/localfunctions/utility/monomialbasis.hh> |
| 13 |
|
| 14 |
#include <dune/localfunctions/lagrange/interpolation.hh> |
| 15 |
|
| 16 |
namespace Dune |
| 17 |
{ |
| 18 |
//! Factory for Lagrange local basis based on a Lagrange point-set |
| 19 |
/** |
| 20 |
* \tparam LP Template class defining the points for the lagrange interpolation |
| 21 |
* \tparam dim Dimension of reference elements |
| 22 |
* \tparam D Domain field-type of the basis functions |
| 23 |
* \tparam R Range field-type of the basis functions |
| 24 |
* \tparam SF Storage field-type for basis matrix |
| 25 |
* \tparam CF Compute field-type for basis matrix |
| 26 |
**/ |
| 27 |
template< template <class,unsigned int> class LP, |
| 28 |
unsigned int dim, class D, class R, |
| 29 |
class SF=R, class CF=SF > |
| 30 |
struct LagrangeBasisFactory |
| 31 |
: public DefaultBasisFactory< MonomialBasisFactory<dim,CF>, |
| 32 |
LagrangeInterpolationFactory<LP,dim,CF>, |
| 33 |
dim,1,D,R,SF,CF > |
| 34 |
{}; |
| 35 |
|
| 36 |
} |
| 37 |
|
| 38 |
#endif // #ifndef DUNE_LAGRANGEBASIS_HH |