This file is indexed.

/usr/include/dune/grid/alugrid/common/bndprojection.hh is in libdune-grid-dev 2.2.1-2.

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
#ifndef DUNE_ALU_BNDPROJECTION_HH
#define DUNE_ALU_BNDPROJECTION_HH

namespace Dune {

  //! \brief ALUGrid boundary projection implementation 
  //!  DuneBndProjection has to fulfil the DuneBoundaryProjection interface 
  template <class GridImp, class ctype = double > 
  class ALUGridBoundaryProjection 
#ifdef ALUGRID_VERTEX_PROJECTION
    : public GridImp :: ALUGridVertexProjectionType
#endif
  {
    typedef GridImp GridType;
    // type of double coordinate vector 
    typedef ctype coord_t[ GridType :: dimensionworld ];
  protected:

    //! reference to boundary projection implementation 
    const GridType& grid_;
  public: 
    //! type of boundary projection 
    typedef typename GridType :: DuneBoundaryProjectionType DuneBoundaryProjectionType;

    //! type of coordinate vector 
    typedef typename DuneBoundaryProjectionType :: CoordinateType CoordinateType;

    //! constructor storing reference to boundary projection implementation 
    ALUGridBoundaryProjection(const GridType& grid) 
      : grid_( grid ) 
    {
    }

    //! (old) method projection vertices defaults to segment 0
    int operator () (const coord_t &orig, 
                     coord_t &prj) const 
    {
      return this->operator()( orig, 0, prj);
    }

    //! projection operator  
    int operator () (const coord_t &orig, 
                     const int segmentIndex,
                     coord_t &prj) const 
    {
#ifdef ALUGRID_VERTEX_PROJECTION
      // get boundary projection 
      const DuneBoundaryProjectionType* bndPrj = 
        grid_.boundaryProjection( segmentIndex );

      // if pointer is zero we do nothing, i.e. identity mapping
      if( bndPrj ) 
      {
        // call projection operator 
        reinterpret_cast<CoordinateType &> (* (&prj[0])) = 
          (*bndPrj)( reinterpret_cast<const CoordinateType &> (* (&orig[0])) );
      }
#endif

      // return 1 for success 
      return 1;
    }
  }; 

} // end namespace Dune 
#endif