/usr/include/dune/localfunctions/mimetic/mimeticall.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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_MIMETIC_ALL_HH
#define DUNE_MIMETIC_ALL_HH
#include <cstddef>
#include <dune/common/exceptions.hh>
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
#include <dune/geometry/type.hh>
#include "../common/localbasis.hh"
#include "../common/localkey.hh"
namespace Dune
{
template<class D, class R, int dim>
class MimeticLocalBasis
{
public:
typedef Dune::LocalBasisTraits<D,dim,Dune::FieldVector<D,dim>,
R,1,Dune::FieldVector<R,1>, Dune::FieldMatrix<R,1,dim> > Traits;
MimeticLocalBasis (unsigned int variant_)
: variant(variant_)
{}
MimeticLocalBasis ()
: variant(0)
{}
unsigned int size () const { return variant; }
//! \brief Evaluate all shape functions
inline void evaluateFunction (
const typename Traits::DomainType& in,
std::vector<typename Traits::RangeType>& out) const
{
DUNE_THROW(Dune::Exception,"mimetic basis evaluation not available");
}
//! \brief Evaluate Jacobian of all shape functions
inline void evaluateJacobian (
const typename Traits::DomainType& in,
std::vector<typename Traits::JacobianType>& out) const
{
DUNE_THROW(Dune::Exception,"mimetic basis Jacobian evaluation not available");
}
//! \brief Evaluate partial derivatives of all shape functions
void partial (const std::array<unsigned int, dim>& /*order*/,
const typename Traits::DomainType& /*in*/, // position
std::vector<typename Traits::RangeType>& /*out*/) const // return value
{
DUNE_THROW(Dune::Exception,"mimetic basis partial derivative evaluation not available");
}
//! \brief Polynomial order of the shape functions
unsigned int order () const
{
DUNE_THROW(Dune::Exception,"mimetic order evaluation not available");
}
private:
unsigned int variant;
};
template<class LB>
class MimeticLocalInterpolation
{
public:
//! \brief Local interpolation of a function
template<typename F, typename C>
void interpolate (const F& f, std::vector<C>& out) const {
DUNE_THROW(Dune::Exception,"mimetic local interpolation not available");
}
};
/** \brief !
\implements Dune::LocalCoefficientsVirtualImp
*/
class MimeticLocalCoefficients
{
public:
MimeticLocalCoefficients (unsigned int variant_)
: variant(variant_), li(variant_)
{
for (unsigned int i=0; i<variant; i++)
li[i] = Dune::LocalKey(i,Dune::LocalKey::intersectionCodim,0);
}
MimeticLocalCoefficients ()
: variant(0), li(0)
{}
//! number of coefficients
std::size_t size () const { return variant; }
//! map index i to local key
const Dune::LocalKey& localKey (std::size_t i) const {
return li[i];
}
private:
unsigned int variant;
std::vector<Dune::LocalKey> li;
};
}
#endif
|