Reference documentation for deal.II version 8.4.1
types.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2015 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii__types_h
17 #define dealii__types_h
18 
19 
20 #include <deal.II/base/config.h>
21 #include <cstddef>
22 
23 
24 DEAL_II_NAMESPACE_OPEN
25 
30 namespace types
31 {
42  typedef unsigned int subdomain_id;
43 
47  typedef unsigned long long int global_vertex_index;
48 
53 # define DEAL_II_VERTEX_INDEX_MPI_TYPE MPI_UNSIGNED_LONG_LONG
54 
55 #ifdef DEAL_II_WITH_64BIT_INDICES
56 
69  // TODO: we should check that unsigned long long int
70  // has the same size as uint64_t
71  typedef unsigned long long int global_dof_index;
72 
77 # define DEAL_II_DOF_INDEX_MPI_TYPE MPI_UNSIGNED_LONG_LONG
78 #else
79 
88  typedef unsigned int global_dof_index;
89 
94 # define DEAL_II_DOF_INDEX_MPI_TYPE MPI_UNSIGNED
95 #endif
96 
110  typedef unsigned char boundary_id;
111 
122  typedef unsigned int manifold_id;
123 
130  typedef unsigned char material_id;
131 }
132 
134 {
135  namespace types
136  {
137 #ifdef DEAL_II_WITH_64BIT_INDICES
138 
141  typedef long long int_type;
142 #else
143 
146  typedef int int_type;
147 #endif
148  }
149 }
150 
151 
152 // this part of the namespace numbers got moved to the bottom types.h file,
153 // because otherwise we get a circular inclusion of config.h, types.h, and
154 // numbers.h
155 namespace numbers
156 {
163  static const unsigned int
164  invalid_unsigned_int = static_cast<unsigned int> (-1);
165 
174 
179 
186 
196 
211 
221 
229 
240 
256 }
257 
258 
259 DEAL_II_NAMESPACE_CLOSE
260 
261 #endif
const types::global_dof_index invalid_size_type
Definition: types.h:173
const types::manifold_id flat_manifold_id
Definition: types.h:228
static const unsigned int invalid_unsigned_int
Definition: types.h:164
const types::subdomain_id invalid_subdomain_id
Definition: types.h:239
unsigned char material_id
Definition: types.h:130
Definition: types.h:30
unsigned int global_dof_index
Definition: types.h:88
const types::boundary_id invalid_boundary_id
Definition: types.h:195
unsigned long long int global_vertex_index
Definition: types.h:47
unsigned int subdomain_id
Definition: types.h:42
const types::subdomain_id artificial_subdomain_id
Definition: types.h:255
const types::manifold_id invalid_manifold_id
Definition: types.h:220
unsigned int manifold_id
Definition: types.h:122
unsigned char boundary_id
Definition: types.h:110
const types::boundary_id internal_face_boundary_id
Definition: types.h:210
const types::global_dof_index invalid_dof_index
Definition: types.h:178
const types::material_id invalid_material_id
Definition: types.h:185