This file is indexed.

/usr/include/dolfin/fem/MultiMeshForm.h is in libdolfin-dev 2017.2.0.post0-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
 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Copyright (C) 2013-2016 Anders Logg
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// First added:  2013-09-12
// Last changed: 2016-03-02

#ifndef __MULTI_MESH_FORM_H
#define __MULTI_MESH_FORM_H

#include <vector>
#include <memory>

namespace dolfin
{

  // Forward declarations
  class MultiMeshFunctionSpace;
  class MultiMeshFunction;
  class MultiMesh;
  class Form;

  /// This class represents a variational form on a cut and composite
  /// finite element function space (MultiMesh) defined on one or more
  /// possibly intersecting meshes.

  class MultiMeshForm
  {
  public:

    // FIXME: Test multimesh functionals. Should likely require a multimesh
    // when instaniated and this constructor should then be removed.
    MultiMeshForm() {}

    /// Create empty multimesh functional
    MultiMeshForm(std::shared_ptr<const MultiMesh> multimesh);

    /// Create empty linear multimesh variational form
    MultiMeshForm(std::shared_ptr<const MultiMeshFunctionSpace> function_space);

    /// Create empty bilinear multimesh variational form
    MultiMeshForm(std::shared_ptr<const MultiMeshFunctionSpace> function_space_0,
                  std::shared_ptr<const MultiMeshFunctionSpace> function_space_1);

    /// Destructor
    ~MultiMeshForm();

    /// Return rank of form (bilinear form = 2, linear form = 1,
    /// functional = 0, etc)
    ///
    /// @return     std::size_t
    ///         The rank of the form.
    std::size_t rank() const;

    /// Return the number of forms (parts) of the MultiMesh form
    ///
    /// @return     std::size_t
    ///         The number of forms (parts) of the MultiMesh form.
    std::size_t num_parts() const;

    /// Extract common multimesh from form
    ///
    /// @return     _MultiMesh_
    ///         The mesh.
    std::shared_ptr<const MultiMesh> multimesh() const;

    /// Return form (part) number i
    ///
    /// @return     _Form_
    ///         Form (part) number i.
    std::shared_ptr<const Form> part(std::size_t i) const;

    /// Return function space for given argument
    ///
    /// @param      i (std::size_t)
    ///         Index
    ///
    /// @return     _MultiMeshFunctionSpace_
    ///         Function space shared pointer.
    std::shared_ptr<const MultiMeshFunctionSpace> function_space(std::size_t i) const;

    /// Add form (shared pointer version)
    ///
    /// @param     form (_Form_)
    ///         The form.
    void add(std::shared_ptr<const Form> form);

    /// Build MultiMesh form
    void build();

    /// Clear MultiMesh form
    void clear();

    /// Set MultiMeshCoeeficient
    void set_multimesh_coefficient(std::size_t i,
                                   std::shared_ptr<const MultiMeshFunction> coefficient);

    /// Get all MultiMesh Coefficients
    std::map<std::size_t, std::shared_ptr<const MultiMeshFunction>> multimesh_coefficients() const;

    /// Get one multimesh coefficient
    std::shared_ptr<const MultiMeshFunction> multimesh_coefficient(std::size_t i) const;

    /// Get multimesh coefficient keys
    std::vector<std::size_t> multimesh_coefficient_keys() const;

  private:

    // The rank of the form
    std::size_t _rank;

    // Multimesh
    std::shared_ptr<const MultiMesh> _multimesh;

    // Function spaces (one for each argument)
    std::vector<std::shared_ptr<const MultiMeshFunctionSpace>> _function_spaces;

    // List of forms (one for each part)
    std::vector<std::shared_ptr<const Form>> _forms;

    // Map of MultiMesh coefficents
    std::map<std::size_t, std::shared_ptr<const MultiMeshFunction>> _multimesh_coefficients;


  };

}

#endif