Reference documentation for deal.II version 8.5.1
types.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2009 - 2016 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 
136 typedef double TrilinosScalar;
137 
138 
140 {
141  namespace types
142  {
143 #ifdef DEAL_II_WITH_64BIT_INDICES
144 
147  typedef long long int_type;
148 #else
149 
152  typedef int int_type;
153 #endif
154  }
155 }
156 
157 
158 // this part of the namespace numbers got moved to the bottom types.h file,
159 // because otherwise we get a circular inclusion of config.h, types.h, and
160 // numbers.h
161 namespace numbers
162 {
169  static const unsigned int
170  invalid_unsigned_int = static_cast<unsigned int> (-1);
171 
180 
185 
192 
202 
217 
227 
235 
246 
262 }
263 
264 
265 DEAL_II_NAMESPACE_CLOSE
266 
267 #endif
const types::global_dof_index invalid_size_type
Definition: types.h:179
const types::manifold_id flat_manifold_id
Definition: types.h:234
static const unsigned int invalid_unsigned_int
Definition: types.h:170
const types::subdomain_id invalid_subdomain_id
Definition: types.h:245
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:201
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:261
const types::manifold_id invalid_manifold_id
Definition: types.h:226
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:216
const types::global_dof_index invalid_dof_index
Definition: types.h:184
const types::material_id invalid_material_id
Definition: types.h:191