This file is indexed.

/usr/include/dune/functions/gridfunctions/localderivativetraits.hh is in libdune-functions-dev 2.5.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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
#define DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH


#include <dune/functions/common/defaultderivativetraits.hh>


namespace Dune {
namespace Functions {


/**
 * \brief Derivative traits for local functions
 *
 * \ingroup FunctionUtility
 *
 * This provides derivative traits to be used by local functions with
 * given EntitySet and global DerivativeTraits.
 *
 * The reason why this is needed is that local functions return
 * derivatives wrt to global coordinates although the arguments
 * for these derivatives are local coordinates.
 */
template<class EntitySet, template<class> class DerivativeTraits=DefaultDerivativeTraits>
struct LocalDerivativeTraits
{
  using LocalDomain = typename EntitySet::LocalCoordinate;
  using Domain = typename EntitySet::GlobalCoordinate;

  template<class Signature>
  struct Traits
  {
    typedef InvalidRange Range;
  };

  template<class R>
  struct Traits<R(LocalDomain)>
  {
    using Range = typename DerivativeTraits<R(Domain)>::Range;
  };
};


}} // namespace Dune::Functions

#endif // DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH