/usr/include/dune/localfunctions/rannacherturek/rannacherturek.hh is in libdune-localfunctions-dev 2.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
#define DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
#include <dune/geometry/type.hh>
#include <dune/localfunctions/common/localfiniteelementtraits.hh>
#include "rannachertureklocalbasis.hh"
#include "rannachertureklocalcoefficients.hh"
#include "rannachertureklocalinterpolation.hh"
namespace Dune
{
/**
* \brief Rannacher-Turek shape functions.
*
* \ingroup RannacherTurek
*
* \tparam D type to represent the field in the domain.
* \tparam R type to represent the field in the range.
* \tparam d domain dimension
*/
template< class D, class R, unsigned int d >
struct RannacherTurekLocalFiniteElement
{
//! \brief export traits class
typedef LocalFiniteElementTraits< RannacherTurekLocalBasis< D, R, d >,
RannacherTurekLocalCoefficients< d >,
RannacherTurekLocalInterpolation< D, R, d >
> Traits;
//! \brief return local basis
const typename Traits::LocalBasisType &localBasis () const
{
return localBasis_;
}
//! \brief return local coefficients
const typename Traits::LocalCoefficientsType &localCoefficients () const
{
return localCoefficients_;
}
//! \brief return local interpolation
const typename Traits::LocalInterpolationType &localInterpolation () const
{
return localInterpolation_;
}
/** \brief Number of shape functions in this finite element */
unsigned int size () const
{
return localBasis_.size();
}
//! \brief return geometry type
GeometryType type () const
{
return GeometryType( typename Impl::CubeTopology< d >::type() );
}
private:
typename Traits::LocalBasisType localBasis_;
typename Traits::LocalCoefficientsType localCoefficients_;
typename Traits::LocalInterpolationType localInterpolation_;
};
} // namespace Dune
#endif // #ifndef DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
|