This file is indexed.

/usr/include/deal.II/fe/fe_values_extractors.h is in libdeal.ii-dev 8.1.0-6ubuntu1.

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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
// ---------------------------------------------------------------------
// $Id: fe_values_extractors.h 30036 2013-07-18 16:55:32Z maier $
//
// Copyright (C) 1998 - 2013 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, 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 2.1 of the License, or (at your option) any later version.
// The full text of the license can be found in the file LICENSE at
// the top level of the deal.II distribution.
//
// ---------------------------------------------------------------------

#ifndef __deal2__fe_values_extractors_h
#define __deal2__fe_values_extractors_h


#include <deal.II/base/config.h>

DEAL_II_NAMESPACE_OPEN


/**
 * A namespace in which we declare "extractors", i.e. classes that when used
 * as subscripts in operator[] expressions on FEValues, FEFaceValues, and
 * FESubfaceValues objects extract certain components of a vector-valued
 * element. The result of applying an extractor to these objects is an object
 * with corresponding type from the namespace FEValuesViews. There are
 * extractors for single scalar components, vector components consisting of
 * <code>dim</code> elements, and second order symmetric tensors consisting of
 * <code>(dim*dim + dim)/2</code> components
 *
 * See the description of the @ref vector_valued module for examples how to
 * use the features of this namespace.
 *
 * @ingroup feaccess vector_valued
 */
namespace FEValuesExtractors
{
  /**
   * Extractor for a single scalar component
   * of a vector-valued element. The result
   * of applying an object of this type to an
   * FEValues, FEFaceValues or
   * FESubfaceValues object is of type
   * FEValuesViews::Scalar. The concept of
   * extractors is defined in the
   * documentation of the namespace
   * FEValuesExtractors and in the @ref
   * vector_valued module.
   *
   * @ingroup feaccess vector_valued
   */
  struct Scalar
  {
    /**
     * The selected scalar component of the
     * vector.
     */
    unsigned int component;

    /**
     * Default constructor. Initialize the
     * object with an invalid component. This leads to
     * an object that can not be used, but it allows
     * objects of this kind to be put into arrays that
     * require a default constructor upon resizing the
     * array, and then later assigning a suitable
     * object to each element of the array.
     */
    Scalar ();

    /**
     * Constructor. Take the selected
     * vector component as argument.
     */
    Scalar (const unsigned int component);
  };


  /**
   * Extractor for a vector of
   * <code>spacedim</code> components of a
   * vector-valued element. The value of
   * <code>spacedim</code> is defined by the
   * FEValues object the extractor is applied
   * to. The result of applying an object of
   * this type to an FEValues, FEFaceValues
   * or FESubfaceValues object is of type
   * FEValuesViews::Vector.
   *
   * The concept of
   * extractors is defined in the
   * documentation of the namespace
   * FEValuesExtractors and in the @ref
   * vector_valued module.
   *
   * Note that in the current context, a
   * vector is meant in the sense physics
   * uses it: it has <code>spacedim</code>
   * components that behave in specific ways
   * under coordinate system
   * transformations. Examples include
   * velocity or displacement fields. This is
   * opposed to how mathematics uses the word
   * "vector" (and how we use this word in
   * other contexts in the library, for
   * example in the Vector class), where it
   * really stands for a collection of
   * numbers. An example of this latter use
   * of the word could be the set of
   * concentrations of chemical species in a
   * flame; however, these are really just a
   * collection of scalar variables, since
   * they do not change if the coordinate
   * system is rotated, unlike the components
   * of a velocity vector, and consequently,
   * this class should not be used for this
   * context.
   *
   * @ingroup feaccess vector_valued
   */
  struct Vector
  {
    /**
     * The first component of the vector
     * view.
     */
    unsigned int first_vector_component;

    /**
     * Default constructor. Initialize the
     * object with an invalid component. This leads to
     * an object that can not be used, but it allows
     * objects of this kind to be put into arrays that
     * require a default constructor upon resizing the
     * array, and then later assigning a suitable
     * object to each element of the array.
     */
    Vector ();

    /**
     * Constructor. Take the first
     * component of the selected vector
     * inside the FEValues object as
     * argument.
     */
    Vector (const unsigned int first_vector_component);
  };


  /**
   * Extractor for a symmetric tensor of a
   * rank specified by the template
   * argument. For a second order symmetric
   * tensor, this represents a collection of
   * <code>(dim*dim + dim)/2</code>
   * components of a vector-valued
   * element. The value of <code>dim</code>
   * is defined by the FEValues object the
   * extractor is applied to. The result of
   * applying an object of this type to an
   * FEValues, FEFaceValues or
   * FESubfaceValues object is of type
   * FEValuesViews::SymmetricTensor.
   *
   * The concept of
   * extractors is defined in the
   * documentation of the namespace
   * FEValuesExtractors and in the @ref
   * vector_valued module.
   *
   * @ingroup feaccess vector_valued
   *
   * @author Andrew McBride, 2009
   */
  template <int rank>
  struct SymmetricTensor
  {
    /**
     * The first component of the tensor
     * view.
     */
    unsigned int first_tensor_component;

    /**
     * Default constructor. Initialize the
     * object with an invalid component. This leads to
     * an object that can not be used, but it allows
     * objects of this kind to be put into arrays that
     * require a default constructor upon resizing the
     * array, and then later assigning a suitable
     * object to each element of the array.
     */
    SymmetricTensor ();

    /**
     * Constructor. Take the first
     * component of the selected tensor
     * inside the FEValues object as
     * argument.
     */
    SymmetricTensor (const unsigned int first_tensor_component);
  };


  /**
   * Extractor for a (possible non-)symmetric tensor of a
   * rank specified by the template
   * argument. For a second order
   * tensor, this represents a collection of
   * <code>(dim*dim)</code>
   * components of a vector-valued
   * element. The value of <code>dim</code>
   * is defined by the FEValues object the
   * extractor is applied to. The result of
   * applying an object of this type to an
   * FEValues, FEFaceValues or
   * FESubfaceValues object is of type
   * FEValuesViews::Tensor.
   *
   * The concept of
   * extractors is defined in the
   * documentation of the namespace
   * FEValuesExtractors and in the @ref
   * vector_valued module.
   *
   * @ingroup feaccess vector_valued
   *
   * @author Denis Davydov, 2013
   */
  template <int rank>
  struct Tensor
  {
    /**
     * The first component of the tensor
     * view.
     */
    unsigned int first_tensor_component;

    /**
     * Default constructor. Initialize the
     * object with an invalid component. This leads to
     * an object that can not be used, but it allows
     * objects of this kind to be put into arrays that
     * require a default constructor upon resizing the
     * array, and then later assigning a suitable
     * object to each element of the array.
     */
    Tensor ();

    /**
     * Constructor. Take the first
     * component of the selected tensor
     * inside the FEValues object as
     * argument.
     */
    Tensor (const unsigned int first_tensor_component);
  };
}


/*------------------------ Inline functions: namespace FEValuesExtractors --------*/

namespace FEValuesExtractors
{
  inline
  Scalar::Scalar ()
    :
    component (numbers::invalid_unsigned_int)
  {}



  inline
  Scalar::Scalar (const unsigned int component)
    :
    component (component)
  {}



  inline
  Vector::Vector ()
    :
    first_vector_component (numbers::invalid_unsigned_int)
  {}


  inline
  Vector::Vector (const unsigned int first_vector_component)
    :
    first_vector_component (first_vector_component)
  {}


  template <int rank>
  inline
  SymmetricTensor<rank>::SymmetricTensor ()
    :
    first_tensor_component(numbers::invalid_unsigned_int)
  {}


  template <int rank>
  inline
  SymmetricTensor<rank>::SymmetricTensor (const unsigned int first_tensor_component)
    :
    first_tensor_component (first_tensor_component)
  {}


  template <int rank>
  inline
  Tensor<rank>::Tensor ()
    :
    first_tensor_component(numbers::invalid_unsigned_int)
  {}


  template <int rank>
  inline
  Tensor<rank>::Tensor (const unsigned int first_tensor_component)
    :
    first_tensor_component (first_tensor_component)
  {}
}




DEAL_II_NAMESPACE_CLOSE

#endif