This file is indexed.

/usr/include/dune/pdelab/localoperator/dginteriorpenaltyparameter.hh is in libdune-pdelab-dev 2.5.0~20170124g7cf9f47a-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
// -*- tab-width: 2; indent-tabs-mode: nil -*-
// vi: set et ts=2 sw=2 sts=2:
#ifndef DUNE_PDELAB_LOCALOPERATOR_DGINTERIORPENALTYPARAMETER_HH
#define DUNE_PDELAB_LOCALOPERATOR_DGINTERIORPENALTYPARAMETER_HH

#include <dune/common/parametertreeparser.hh>

namespace Dune {
  namespace PDELab {

    /** \brief Default implementation of the interior penalty factor.

        It computes the face diameter from the formula derived by
        Paul Houston et al.
        There is an overpenalized version, OverPenalizedInteriorPenalty,
        which is implemented in a different class due to efficiency reasons.

        \warning The scaling with the viscosity (in the Navier-Stokes case)
                 is not included in here any more!!!
    */
    template<typename RF>
    class DefaultInteriorPenalty
    {
    private :
      RF sigma;
    public :
      DefaultInteriorPenalty(const Dune::ParameterTree& config)
      {
        sigma = config.get<RF>("sigma");
      }

      template<typename GEO, typename IGEO, typename OGEO>
      RF getFaceIP(const GEO& geo, const IGEO& igeo, const OGEO& ogeo) const
      {
        using std::min;
        // volume of face divided by volume of element => 1/h_F
        return sigma * geo.volume()/min(igeo.volume(), ogeo.volume());
      }

      template<typename GEO, typename IGEO>
      RF getFaceIP(const GEO& geo, const IGEO& igeo) const
      {
        // volume of face divided by volume of element => 1/h_F
        return sigma * geo.volume()/igeo.volume();
      }
    }; // end class DefaultInteriorPenalty

    /** \brief Implementation of overpenalized interior penalty.

        It computes the face diameter from the formula derived by
        Paul Houston et al. and uses overpenalization.

        \warning The scaling with the viscosity (in the Navier-Stokes case)
                 is not included in here any more!!!
    */
    template<typename RF>
    class OverPenalizedInteriorPenalty
    {
    private :
      RF sigma;
      RF beta;
    public :
      OverPenalizedInteriorPenalty(const Dune::ParameterTree& config)
      {
        sigma = config.get<RF>("sigma");
        beta = config.get<RF>("beta");
      }

      template<typename GEO, typename IGEO, typename OGEO>
      RF getFaceIP(const GEO& geo, const IGEO& igeo, const OGEO& ogeo) const
      {
        using std::pow;
        using std::min;
        // volume of face divided by volume of element => 1/h_F
        return sigma * pow(geo.volume()/min(igeo.volume(),ogeo.volume()), beta);
      }

      template<typename GEO, typename IGEO>
      RF getFaceIP(const GEO& geo, const IGEO& igeo) const
      {
        using std::pow;
        // volume of face divided by volume of element => 1/h_F
        return sigma * pow(geo.volume()/igeo.volume(), beta);
      }
    }; // end class OverPenalizedInteriorPenalty

  } // end namespace PDELab
} // end namespace Dune
#endif