deal.II version GIT relicensing-6809-ge913b9bb34 2026-09-25 17: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
types.h
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) 2010 - 2025 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#ifndef dealii_types_h
14#define dealii_types_h
15
16
17#include <deal.II/base/config.h>
18
19#include <cstdint>
20#include <type_traits> // make_signed_t
21
22
24
29namespace types
30{
38 using geometric_orientation = std::uint8_t;
39
50 using subdomain_id = unsigned int;
51
55 using global_vertex_index = std::uint64_t;
56
65#define DEAL_II_VERTEX_INDEX_MPI_TYPE MPI_UINT64_T
66
70 using fe_index = unsigned short int;
71
89#ifdef DEAL_II_WITH_64BIT_INDICES
90 using global_dof_index = std::uint64_t;
91#else
92 using global_dof_index = unsigned int;
93#endif
94
100#ifdef DEAL_II_WITH_64BIT_INDICES
101 using signed_global_dof_index = long long;
102#else
104#endif
105
114#ifdef DEAL_II_WITH_64BIT_INDICES
115# define DEAL_II_DOF_INDEX_MPI_TYPE MPI_UINT64_T
116#else
117# define DEAL_II_DOF_INDEX_MPI_TYPE MPI_UNSIGNED
118#endif
119
133#ifdef DEAL_II_WITH_64BIT_INDICES
134 using global_cell_index = std::uint64_t;
135#else
136 using global_cell_index = unsigned int;
137#endif
138
146
159 using boundary_id = unsigned int;
160
171 using manifold_id = unsigned int;
172
182 using material_id = unsigned int;
183} // namespace types
184
188using TrilinosScalar = double;
189
190
191namespace TrilinosWrappers
192{
193 namespace types
194 {
198 using int64_type = long long int;
199
200#ifdef DEAL_II_WITH_64BIT_INDICES
204 using int_type = int64_type;
205#else
209 using int_type = int;
210#endif
211 } // namespace types
212} // namespace TrilinosWrappers
213
214
215
216namespace numbers
217{
228 constexpr unsigned int invalid_unsigned_int = static_cast<unsigned int>(-1);
229
241 static_cast<types::global_dof_index>(-1);
242
251
260 static_cast<types::global_dof_index>(-1);
261
273 static_cast<types::coarse_cell_id>(-1);
274
285 static_cast<types::material_id>(-1);
286
300 static_cast<types::boundary_id>(-1);
301
320 static_cast<types::boundary_id>(-1);
321
333 static_cast<types::manifold_id>(-1);
334
343 static_cast<types::geometric_orientation>(0b000);
344
356 static_cast<types::geometric_orientation>(0b001);
357
370 static_cast<types::geometric_orientation>(-1);
371
386 static_cast<types::subdomain_id>(-1);
387
407 static_cast<types::subdomain_id>(-2);
408
415 constexpr std::uint8_t max_n_levels = 31;
416} // namespace numbers
417
419
420#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
long long int int64_type
Definition types.h:198
constexpr types::global_dof_index invalid_dof_index
Definition types.h:259
constexpr std::uint8_t max_n_levels
Definition types.h:415
constexpr types::geometric_orientation invalid_geometric_orientation
Definition types.h:369
constexpr types::global_dof_index invalid_size_type
Definition types.h:240
constexpr unsigned int invalid_unsigned_int
Definition types.h:228
constexpr types::boundary_id internal_face_boundary_id
Definition types.h:319
constexpr types::boundary_id invalid_boundary_id
Definition types.h:299
constexpr types::manifold_id flat_manifold_id
Definition types.h:332
constexpr types::subdomain_id artificial_subdomain_id
Definition types.h:406
constexpr types::geometric_orientation reverse_line_orientation
Definition types.h:355
constexpr types::material_id invalid_material_id
Definition types.h:284
constexpr types::subdomain_id invalid_subdomain_id
Definition types.h:385
constexpr types::coarse_cell_id invalid_coarse_cell_id
Definition types.h:272
constexpr types::geometric_orientation default_geometric_orientation
Definition types.h:342
constexpr types::fe_index invalid_fe_index
Definition types.h:250
Definition types.h:30
std::uint64_t global_vertex_index
Definition types.h:55
unsigned short int fe_index
Definition types.h:70
unsigned int global_cell_index
Definition types.h:136
std::uint8_t geometric_orientation
Definition types.h:38
double TrilinosScalar
Definition types.h:188