Reference documentation for deal.II version 9.6.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
fe_values_extractors.cc
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2019 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
16
18
20
21namespace FEValuesExtractors
22{
23 std::string
25 {
26 return "Scalar(" + Utilities::int_to_string(component) + ")";
27 }
28
29
30 std::string
32 {
33 return "Vector(" + Utilities::int_to_string(first_vector_component) + ")";
34 }
35
36
37 template <int rank>
38 std::string
40 {
41 return "Tensor<" + Utilities::int_to_string(rank) + ">(" +
42 Utilities::int_to_string(first_tensor_component) + ")";
43 }
44
45
46 template <int rank>
47 std::string
49 {
50 return "SymmetricTensor<" + Utilities::int_to_string(rank) + ">(" +
51 Utilities::int_to_string(first_tensor_component) + ")";
52 }
53
54 // Explicit instantiations
55 template struct Tensor<0>;
56 template struct Tensor<1>;
57 template struct Tensor<2>;
58 template struct Tensor<3>;
59 template struct Tensor<4>;
60 template struct SymmetricTensor<2>;
61 template struct SymmetricTensor<4>;
62
63} // namespace FEValuesExtractors
64
65
66
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Definition utilities.cc:470