/usr/include/dune/pdelab/constraints/mfd.hh is in libdune-pdelab-dev 2.0.0-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 | // -*- tab-width: 4; indent-tabs-mode: nil -*-
#ifndef DUNE_PDELAB_MFDCONSTRAINTS_HH
#define DUNE_PDELAB_MFDCONSTRAINTS_HH
#include<dune/geometry/referenceelements.hh>
#include<dune/geometry/type.hh>
namespace Dune {
namespace PDELab {
//! \addtogroup Constraints
//! \ingroup FiniteElementMap
//! \{
//! Mimetic Constraints
class MimeticConstraints
{
public:
enum{doVolume=false};
enum{doSkeleton=false};
enum{doBoundary=true};
enum{doProcessor=false};
//! boundary constraints
/**
* \tparam F grid function returning boundary condition type
* \tparam IG intersection geometry
* \tparam LFS local function space
* \tparam T TransformationType
*/
template<typename B, typename IG, typename LFS, typename T>
void boundary(const B& b, const IG& ig, const LFS& lfs, T& trafo) const
{
static const unsigned int dimIntersection = IG::dimension - 1;
typedef typename IG::ctype ctype;
GeometryType gt = ig.intersection().type();
Dune::FieldVector<ctype,dimIntersection> center
= ReferenceElements<ctype,dimIntersection>::general(gt).position(0,0);
if(b.isDirichlet(ig, center) )
{
typename T::RowType empty;
trafo[ig.intersectionIndex()] = empty;
}
}
};
//! \}
}
}
#endif
|