-
Notifications
You must be signed in to change notification settings - Fork 707
/
template-arguments.in
269 lines (218 loc) · 11.1 KB
/
template-arguments.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
// input file that will be processed into build/share/deal.II/template-arguments
// and used by expand_instantiations to process .inst.in files.
// booleans
BOOL := { true; false }
// real scalar floating point types
REAL_SCALARS := { double; float }
// real scalar floating point types (vectorized)
REAL_SCALARS_VECTORIZED := { @DEAL_II_EXPAND_REAL_SCALARS_VECTORIZED@; }
FLOAT_VECTORIZED := { @DEAL_II_EXPAND_FLOAT_VECTORIZED@; }
// complex scalar types
COMPLEX_SCALARS := {
@DEAL_II_EXPAND_COMPLEX_SCALARS@;
}
// real scalar floating point types
REAL_AND_COMPLEX_SCALARS := {
double;
float;
@DEAL_II_EXPAND_COMPLEX_SCALARS@;
}
// differentiable ADOL-C scalar types
DIFFERENTIABLE_ADOLC_REAL_SCALARS := {
@DEAL_II_EXPAND_ADOLC_TYPES@;
}
// differentiable Sacado scalar types
DIFFERENTIABLE_TRILINOS_SACADO_REAL_SCALARS_FAD := {
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_FAD@;
}
DIFFERENTIABLE_TRILINOS_SACADO_REAL_SCALARS_RAD := {
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_RAD@;
}
DIFFERENTIABLE_TRILINOS_SACADO_REAL_SCALARS := {
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_FAD@;
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_RAD@;
}
// differentiable scalar types
DIFFERENTIABLE_REAL_SCALARS := {
@DEAL_II_EXPAND_ADOLC_TYPES@;
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_FAD@;
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_RAD@;
}
// all possible scalar types
ALL_SCALAR_TYPES := {
double;
float;
@DEAL_II_EXPAND_COMPLEX_SCALARS@;
@DEAL_II_EXPAND_ADOLC_TYPES@;
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_FAD@;
@DEAL_II_EXPAND_TRILINOS_SACADO_TYPES_RAD@;
}
// scalar types that have a corresponding MPI datatype and that we can
// therefore use in calls like MPI_Allreduce
//
// Since many of our MPI calls use std::vector we cannot include bool here
MPI_SCALARS := { int;
long int;
unsigned int;
unsigned long int;
unsigned long long int;
float;
double;
long double;
@DEAL_II_EXPAND_COMPLEX_SCALARS@;
}
// complex types and long double are typically not directly supported on GPUs
MPI_DEVICE_SCALARS := { int;
long int;
unsigned int;
unsigned long int;
unsigned long long int;
float;
double;
}
// template names for serial vectors that we can instantiate as T<S> where
// S=REAL_SCALARS for example
DEAL_II_VEC_TEMPLATES := { Vector; BlockVector }
// All vector types, based on real or complex scalars
VECTOR_TYPES := { Vector<double>;
Vector<float> ;
BlockVector<double>;
BlockVector<float>;
LinearAlgebra::distributed::Vector<double>;
LinearAlgebra::distributed::Vector<float> ;
LinearAlgebra::distributed::BlockVector<double>;
LinearAlgebra::distributed::BlockVector<float> ;
@DEAL_II_EXPAND_COMPLEX_VECTORS@;
@DEAL_II_EXPAND_COMPLEX_BLOCK_VECTORS@;
@DEAL_II_EXPAND_COMPLEX_LA_PARALLEL_VECTORS@;
@DEAL_II_EXPAND_COMPLEX_LA_PARALLEL_BLOCK_VECTORS@;
@DEAL_II_EXPAND_TRILINOS_MPI_VECTOR@;
@DEAL_II_EXPAND_EPETRA_VECTOR@;
@DEAL_II_EXPAND_TPETRA_VECTOR_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_FLOAT@;
@DEAL_II_EXPAND_TPETRA_VECTOR_COMPLEX_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_COMPLEX_FLOAT@;
@DEAL_II_EXPAND_PETSC_MPI_VECTOR@;
@DEAL_II_EXPAND_TRILINOS_MPI_BLOCKVECTOR@;
@DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR@;
}
// same as VECTOR_TYPES but only real-valued vectors (and only with PETSc
// vectors if the PETScScalar data type is real-valued)
REAL_VECTOR_TYPES := { Vector<double>;
Vector<float> ;
BlockVector<double>;
BlockVector<float>;
LinearAlgebra::distributed::Vector<double>;
LinearAlgebra::distributed::Vector<float> ;
LinearAlgebra::distributed::BlockVector<double>;
LinearAlgebra::distributed::BlockVector<float> ;
@DEAL_II_EXPAND_TRILINOS_MPI_VECTOR@;
@DEAL_II_EXPAND_EPETRA_VECTOR@;
@DEAL_II_EXPAND_TPETRA_VECTOR_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_FLOAT@;
@DEAL_II_EXPAND_PETSC_MPI_VECTOR_REAL@;
@DEAL_II_EXPAND_TRILINOS_MPI_BLOCKVECTOR@;
@DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR_REAL@;
}
// real vector types excluding block vectors
REAL_NONBLOCK_VECTORS := { Vector<double>;
Vector<float> ;
LinearAlgebra::distributed::Vector<double>;
LinearAlgebra::distributed::Vector<float> ;
@DEAL_II_EXPAND_TRILINOS_MPI_VECTOR@;
@DEAL_II_EXPAND_EPETRA_VECTOR@;
@DEAL_II_EXPAND_TPETRA_VECTOR_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_FLOAT@;
@DEAL_II_EXPAND_PETSC_MPI_VECTOR_REAL@;
}
// wrappers for MPI vectors (PETSc/Trilinos)
EXTERNAL_PARALLEL_VECTORS := { @DEAL_II_EXPAND_TRILINOS_MPI_VECTOR@;
@DEAL_II_EXPAND_TRILINOS_MPI_BLOCKVECTOR@;
@DEAL_II_EXPAND_EPETRA_VECTOR@;
@DEAL_II_EXPAND_TPETRA_VECTOR_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_FLOAT@;
@DEAL_II_EXPAND_TPETRA_VECTOR_COMPLEX_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_COMPLEX_FLOAT@;
@DEAL_II_EXPAND_PETSC_MPI_VECTOR@;
@DEAL_II_EXPAND_PETSC_MPI_BLOCKVECTOR@
}
// TODO: I don't understand this one. LA::distributed::Vector does not have a
// native matrix type, especially if we don't compile with Trilinos. Currently
// only used: mg_transfer_prebuilt.inst.in and
// mg_level_global_transfer.inst.in
VECTORS_WITH_MATRIX := { Vector<double>;
Vector<float> ;
BlockVector<double>;
BlockVector<float>;
LinearAlgebra::distributed::Vector<double>;
@DEAL_II_EXPAND_TRILINOS_MPI_VECTOR@;
@DEAL_II_EXPAND_EPETRA_VECTOR@;
@DEAL_II_EXPAND_TPETRA_VECTOR_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_FLOAT@;
@DEAL_II_EXPAND_TPETRA_VECTOR_COMPLEX_DOUBLE@;
@DEAL_II_EXPAND_TPETRA_VECTOR_COMPLEX_FLOAT@;
@DEAL_II_EXPAND_PETSC_MPI_VECTOR@;
}
// Matrices
SPARSE_MATRICES := { SparseMatrix<double>;
SparseMatrix<float>;
BlockSparseMatrix<double>;
BlockSparseMatrix<float>;
@DEAL_II_EXPAND_TRILINOS_SPARSE_MATRICES@;
@DEAL_II_EXPAND_PETSC_SPARSE_MATRICES@;
}
// Special lists for AffineConstraints:
AFFINE_CONSTRAINTS_MATRIX_TEMPL := { FullMatrix;
SparseMatrix;
SparseMatrixEZ;
ChunkSparseMatrix;
}
// General container types
GENERAL_CONTAINER_TYPES := { std::vector;
ArrayView
}
// Triangulation and DoFHandler templates
TRIANGULATION_AND_DOFHANDLER_TEMPLATES := { Triangulation;
parallel::shared::Triangulation;
parallel::distributed::Triangulation;
parallel::fullydistributed::Triangulation;
DoFHandler }
// concrete sequential Triangulation and DoFHandler with hard-coded
// <deal_II_dimension, deal_II_space_dimension> (for iterators!)
SEQUENTIAL_TRIANGULATION_AND_DOFHANDLER := { Triangulation<deal_II_dimension, deal_II_space_dimension>;
DoFHandler<deal_II_dimension, deal_II_space_dimension> }
// concrete sequential Triangulation and DoFHandler types with hard-coded
// <deal_II_dimension, deal_II_space_dimension>
SEQUENTIAL_TRIANGULATION_AND_DOFHANDLERS := { Triangulation<deal_II_dimension, deal_II_space_dimension>;
DoFHandler<deal_II_dimension, deal_II_space_dimension> }
// concrete Triangulation and DoFHandler types (all types you can iterate over cells from)
// with hard-coded <deal_II_dimension, deal_II_space_dimension>
TRIANGULATION_AND_DOFHANDLERS := { Triangulation<deal_II_dimension, deal_II_space_dimension>;
parallel::shared::Triangulation<deal_II_dimension, deal_II_space_dimension>;
parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension>;
parallel::fullydistributed::Triangulation<deal_II_dimension, deal_II_space_dimension>;
DoFHandler<deal_II_dimension, deal_II_space_dimension> }
// concrete Triangulation types (all types you can iterate over cells from)
// with hard-coded <deal_II_dimension, deal_II_space_dimension>
TRIANGULATIONS := { Triangulation<deal_II_dimension, deal_II_space_dimension>;
parallel::shared::Triangulation<deal_II_dimension, deal_II_space_dimension>;
parallel::distributed::Triangulation<deal_II_dimension, deal_II_space_dimension>;
parallel::fullydistributed::Triangulation<deal_II_dimension, deal_II_space_dimension>; }
TRILINOS_SCALARS := { @DEAL_II_EXPAND_TPETRA_TYPES@; }
// all supported logical dimensions
DIMENSIONS := { 1; 2; 3 }
// all supported output dimensions
OUTPUT_DIMENSIONS := { 0; 1; 2; 3 }
// all supported spatial dimensions
SPACE_DIMENSIONS := { 1; 2; 3 }
// all ranks used for instantiating tensors
RANKS := { 1; 2; 3; 4 }
// all ranks used for instantiating symmetric tensors
SYM_RANKS := { 2; 4 }
// Flags that are allowed in DataOutInterface::set_flags
OUTPUT_FLAG_TYPES := { DXFlags; UcdFlags; GnuplotFlags; PovrayFlags; EpsFlags;
GmvFlags; Hdf5Flags; TecplotFlags; VtkFlags; SvgFlags;
Deal_II_IntermediateFlags }
// CGAL Kernels
CGAL_KERNELS := {CGAL::Simple_cartesian<double>; CGAL::Exact_predicates_exact_constructions_kernel;
CGAL::Exact_predicates_inexact_constructions_kernel }