deal.II version GIT relicensing-7182-g951947b1c4 2026-11-26 10:30: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
refinement_choice.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) 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
14
16
17template <int dim>
18std::string
20{
21 if (*this == RefinementChoices::None<dim>)
22 return "None";
23 if (*this == RefinementChoices::Isotropic<dim>)
24 return "Isotropic";
25
26 if constexpr (dim == 2)
27 switch (this->kind)
28 {
29 case RefinementChoices::CutX<2>:
30 return "CutX";
31 case RefinementChoices::CutY<2>:
32 return "CutY";
33 default:
35 return "";
36 }
37 else if constexpr (dim == 3)
38 switch (this->kind)
39 {
40 case RefinementChoices::CutX<3>:
41 return "CutX";
42 case RefinementChoices::CutY<3>:
43 return "CutY";
44 case RefinementChoices::CutXY<3>:
45 return "CutXY";
46 case RefinementChoices::CutZ<3>:
47 return "CutZ";
48 case RefinementChoices::CutXZ<3>:
49 return "CutXZ";
50 case RefinementChoices::CutYZ<3>:
51 return "CutYZ";
52 case RefinementChoices::Cut49<3>:
53 return "Cut49";
54 case RefinementChoices::Cut57<3>:
55 return "Cut57";
56 case RefinementChoices::Cut68<3>:
57 return "Cut68";
58 default:
60 return "";
61 }
62
64 return "";
65}
66
67
68
69template class RefinementChoice<0>;
70template class RefinementChoice<1>;
71template class RefinementChoice<2>;
72template class RefinementChoice<3>;
73
A class which enumerates refinement possibilities for all supported ReferenceCell objects.
std::string to_string() const
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
#define DEAL_II_ASSERT_UNREACHABLE()