deal.II version 9.8.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
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
191} // namespace types
192
196using TrilinosScalar = double;
197
198
200{
201 namespace types
202 {
206 using int64_type = long long int;
207
208#ifdef DEAL_II_WITH_64BIT_INDICES
212 using int_type = int64_type;
213#else
217 using int_type = int;
218#endif
219 } // namespace types
220} // namespace TrilinosWrappers
221
222
223
224namespace numbers
225{
236 constexpr unsigned int invalid_unsigned_int = static_cast<unsigned int>(-1);
237
249 static_cast<types::global_dof_index>(-1);
250
259
268 static_cast<types::global_dof_index>(-1);
269
281 static_cast<types::coarse_cell_id>(-1);
282
293 static_cast<types::material_id>(-1);
294
308 static_cast<types::boundary_id>(-1);
309
328 static_cast<types::boundary_id>(-1);
329
341 static_cast<types::manifold_id>(-1);
342
351 static_cast<types::geometric_orientation>(0b000);
352
364 static_cast<types::geometric_orientation>(0b001);
365
378 static_cast<types::geometric_orientation>(-1);
379
394 static_cast<types::subdomain_id>(-1);
395
415 static_cast<types::subdomain_id>(-2);
416
423 constexpr std::uint8_t max_n_levels = 31;
424} // namespace numbers
425
427
428#endif
#define DEAL_II_DEPRECATED
Definition config.h:286
#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:206
constexpr types::global_dof_index invalid_dof_index
Definition types.h:267
constexpr std::uint8_t max_n_levels
Definition types.h:423
constexpr types::geometric_orientation invalid_geometric_orientation
Definition types.h:377
constexpr types::global_dof_index invalid_size_type
Definition types.h:248
constexpr unsigned int invalid_unsigned_int
Definition types.h:236
constexpr types::boundary_id internal_face_boundary_id
Definition types.h:327
constexpr types::boundary_id invalid_boundary_id
Definition types.h:307
constexpr types::manifold_id flat_manifold_id
Definition types.h:340
constexpr types::subdomain_id artificial_subdomain_id
Definition types.h:414
constexpr types::geometric_orientation reverse_line_orientation
Definition types.h:363
constexpr types::material_id invalid_material_id
Definition types.h:292
constexpr types::subdomain_id invalid_subdomain_id
Definition types.h:393
constexpr types::coarse_cell_id invalid_coarse_cell_id
Definition types.h:280
constexpr types::geometric_orientation default_geometric_orientation
Definition types.h:350
constexpr types::fe_index invalid_fe_index
Definition types.h:258
Definition types.h:30
unsigned int material_id
Definition types.h:182
unsigned int boundary_id
Definition types.h:159
unsigned int subdomain_id
Definition types.h:50
std::uint64_t global_vertex_index
Definition types.h:55
int signed_global_dof_index
Definition types.h:103
unsigned short int fe_index
Definition types.h:70
unsigned int global_dof_index
Definition types.h:92
std::uint8_t geometric_entity_type
Definition types.h:190
global_cell_index coarse_cell_id
Definition types.h:145
unsigned int manifold_id
Definition types.h:171
std::uint8_t geometric_orientation
Definition types.h:38
unsigned int global_cell_index
Definition types.h:136
double TrilinosScalar
Definition types.h:196