Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_values_extractors.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2019 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #include <deal.II/base/utilities.h>
17 
18 #include <deal.II/fe/fe_values_extractors.h>
19 
20 DEAL_II_NAMESPACE_OPEN
21 
22 namespace FEValuesExtractors
23 {
24  std::string
26  {
27  return "Scalar(" + Utilities::int_to_string(component) + ")";
28  }
29 
30 
31  std::string
33  {
34  return "Vector(" + Utilities::int_to_string(first_vector_component) + ")";
35  }
36 
37 
38  template <int rank>
39  std::string
41  {
42  return "Tensor<" + Utilities::int_to_string(rank) + ">(" +
43  Utilities::int_to_string(first_tensor_component) + ")";
44  }
45 
46 
47  template <int rank>
48  std::string
50  {
51  return "SymmetricTensor<" + Utilities::int_to_string(rank) + ">(" +
52  Utilities::int_to_string(first_tensor_component) + ")";
53  }
54 
55  // Explicit instantiations
56  template struct Tensor<0>;
57  template struct Tensor<1>;
58  template struct Tensor<2>;
59  template struct Tensor<3>;
60  template struct Tensor<4>;
61  template struct SymmetricTensor<2>;
62  template struct SymmetricTensor<4>;
63 
64 } // namespace FEValuesExtractors
65 
66 
67 
68 DEAL_II_NAMESPACE_CLOSE
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Definition: utilities.cc:383