deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
\(\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: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2019 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#include <deal.II/base/config.h>
14
16
18
19#include <string>
20
22
23namespace FEValuesExtractors
24{
25 std::string
27 {
28 return "Scalar(" + Utilities::int_to_string(component) + ")";
29 }
30
31
32 std::string
34 {
35 return "Vector(" + Utilities::int_to_string(first_vector_component) + ")";
36 }
37
38
39 template <int rank>
40 std::string
42 {
43 return "Tensor<" + Utilities::int_to_string(rank) + ">(" +
44 Utilities::int_to_string(first_tensor_component) + ")";
45 }
46
47
48 template <int rank>
49 std::string
51 {
52 return "SymmetricTensor<" + Utilities::int_to_string(rank) + ">(" +
53 Utilities::int_to_string(first_tensor_component) + ")";
54 }
55
56 // Explicit instantiations
57 template struct Tensor<0>;
58 template struct Tensor<1>;
59 template struct Tensor<2>;
60 template struct Tensor<3>;
61 template struct Tensor<4>;
62 template struct SymmetricTensor<2>;
63 template struct SymmetricTensor<4>;
64
65} // namespace FEValuesExtractors
66
67
68
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
std::string int_to_string(const unsigned int value, const unsigned int digits=numbers::invalid_unsigned_int)
Definition utilities.cc:464