24
24
CEED_ERROR_UNSUPPORTED = - 3
25
25
end
26
26
27
+ @cenum CeedMemType:: UInt32 begin
28
+ CEED_MEM_HOST = 0
29
+ CEED_MEM_DEVICE = 1
30
+ end
31
+
32
+ @cenum CeedCopyMode:: UInt32 begin
33
+ CEED_COPY_VALUES = 0
34
+ CEED_USE_POINTER = 1
35
+ CEED_OWN_POINTER = 2
36
+ end
37
+
38
+ @cenum CeedNormType:: UInt32 begin
39
+ CEED_NORM_1 = 0
40
+ CEED_NORM_2 = 1
41
+ CEED_NORM_MAX = 2
42
+ end
43
+
44
+ @cenum CeedTransposeMode:: UInt32 begin
45
+ CEED_NOTRANSPOSE = 0
46
+ CEED_TRANSPOSE = 1
47
+ end
48
+
49
+ @cenum CeedEvalMode:: UInt32 begin
50
+ CEED_EVAL_NONE = 0
51
+ CEED_EVAL_INTERP = 1
52
+ CEED_EVAL_GRAD = 2
53
+ CEED_EVAL_DIV = 4
54
+ CEED_EVAL_CURL = 8
55
+ CEED_EVAL_WEIGHT = 16
56
+ end
57
+
58
+ @cenum CeedQuadMode:: UInt32 begin
59
+ CEED_GAUSS = 0
60
+ CEED_GAUSS_LOBATTO = 1
61
+ end
62
+
63
+ @cenum CeedElemTopology:: UInt32 begin
64
+ CEED_TOPOLOGY_LINE = 65536
65
+ CEED_TOPOLOGY_TRIANGLE = 131073
66
+ CEED_TOPOLOGY_QUAD = 131074
67
+ CEED_TOPOLOGY_TET = 196611
68
+ CEED_TOPOLOGY_PYRAMID = 196612
69
+ CEED_TOPOLOGY_PRISM = 196613
70
+ CEED_TOPOLOGY_HEX = 196614
71
+ end
72
+
73
+ @cenum CeedContextFieldType:: UInt32 begin
74
+ CEED_CONTEXT_FIELD_DOUBLE = 1
75
+ CEED_CONTEXT_FIELD_INT32 = 2
76
+ end
77
+
27
78
mutable struct Ceed_private end
28
79
29
80
const Ceed = Ptr{Ceed_private}
@@ -123,27 +174,10 @@ function CeedGetScalarType(scalar_type)
123
174
ccall ((:CeedGetScalarType , libceed), Cint, (Ptr{CeedScalarType},), scalar_type)
124
175
end
125
176
126
- @cenum CeedMemType:: UInt32 begin
127
- CEED_MEM_HOST = 0
128
- CEED_MEM_DEVICE = 1
129
- end
130
-
131
177
function CeedGetPreferredMemType (ceed, type)
132
178
ccall ((:CeedGetPreferredMemType , libceed), Cint, (Ceed, Ptr{CeedMemType}), ceed, type)
133
179
end
134
180
135
- @cenum CeedCopyMode:: UInt32 begin
136
- CEED_COPY_VALUES = 0
137
- CEED_USE_POINTER = 1
138
- CEED_OWN_POINTER = 2
139
- end
140
-
141
- @cenum CeedNormType:: UInt32 begin
142
- CEED_NORM_1 = 0
143
- CEED_NORM_2 = 1
144
- CEED_NORM_MAX = 2
145
- end
146
-
147
181
function CeedVectorCreate (ceed, len, vec)
148
182
ccall ((:CeedVectorCreate , libceed), Cint, (Ceed, CeedSize, Ptr{CeedVector}), ceed, len, vec)
149
183
end
@@ -240,11 +274,6 @@ function CeedRequestWait(req)
240
274
ccall ((:CeedRequestWait , libceed), Cint, (Ptr{CeedRequest},), req)
241
275
end
242
276
243
- @cenum CeedTransposeMode:: UInt32 begin
244
- CEED_NOTRANSPOSE = 0
245
- CEED_TRANSPOSE = 1
246
- end
247
-
248
277
function CeedElemRestrictionCreate (ceed, num_elem, elem_size, num_comp, comp_stride, l_size, mem_type, copy_mode, offsets, rstr)
249
278
ccall ((:CeedElemRestrictionCreate , libceed), Cint, (Ceed, CeedInt, CeedInt, CeedInt, CeedInt, CeedSize, CeedMemType, CeedCopyMode, Ptr{CeedInt}, Ptr{CeedElemRestriction}), ceed, num_elem, elem_size, num_comp, comp_stride, l_size, mem_type, copy_mode, offsets, rstr)
250
279
end
@@ -325,30 +354,6 @@ function CeedElemRestrictionDestroy(rstr)
325
354
ccall ((:CeedElemRestrictionDestroy , libceed), Cint, (Ptr{CeedElemRestriction},), rstr)
326
355
end
327
356
328
- @cenum CeedEvalMode:: UInt32 begin
329
- CEED_EVAL_NONE = 0
330
- CEED_EVAL_INTERP = 1
331
- CEED_EVAL_GRAD = 2
332
- CEED_EVAL_DIV = 4
333
- CEED_EVAL_CURL = 8
334
- CEED_EVAL_WEIGHT = 16
335
- end
336
-
337
- @cenum CeedQuadMode:: UInt32 begin
338
- CEED_GAUSS = 0
339
- CEED_GAUSS_LOBATTO = 1
340
- end
341
-
342
- @cenum CeedElemTopology:: UInt32 begin
343
- CEED_TOPOLOGY_LINE = 65536
344
- CEED_TOPOLOGY_TRIANGLE = 131073
345
- CEED_TOPOLOGY_QUAD = 131074
346
- CEED_TOPOLOGY_TET = 196611
347
- CEED_TOPOLOGY_PYRAMID = 196612
348
- CEED_TOPOLOGY_PRISM = 196613
349
- CEED_TOPOLOGY_HEX = 196614
350
- end
351
-
352
357
function CeedBasisCreateTensorH1Lagrange (ceed, dim, num_comp, P, Q, quad_mode, basis)
353
358
ccall ((:CeedBasisCreateTensorH1Lagrange , libceed), Cint, (Ceed, CeedInt, CeedInt, CeedInt, CeedInt, CeedQuadMode, Ptr{CeedBasis}), ceed, dim, num_comp, P, Q, quad_mode, basis)
354
359
end
@@ -532,11 +537,6 @@ function CeedQFunctionFieldGetEvalMode(qf_field, eval_mode)
532
537
ccall ((:CeedQFunctionFieldGetEvalMode , libceed), Cint, (CeedQFunctionField, Ptr{CeedEvalMode}), qf_field, eval_mode)
533
538
end
534
539
535
- @cenum CeedContextFieldType:: UInt32 begin
536
- CEED_CONTEXT_FIELD_DOUBLE = 1
537
- CEED_CONTEXT_FIELD_INT32 = 2
538
- end
539
-
540
540
# typedef int ( * CeedQFunctionContextDataDestroyUser ) ( void * data )
541
541
const CeedQFunctionContextDataDestroyUser = Ptr{Cvoid}
542
542
@@ -1364,7 +1364,9 @@ end
1364
1364
1365
1365
# Skipping MacroDefinition: CEED_EXTERN extern CEED_VISIBILITY ( default )
1366
1366
1367
- # Skipping MacroDefinition: CEED_QFUNCTION_HELPER CEED_QFUNCTION_ATTR static inline
1367
+ # Skipping MacroDefinition: CEED_QFUNCTION_HELPER_ATTR CEED_QFUNCTION_ATTR __attribute__ ( ( always_inline ) )
1368
+
1369
+ # Skipping MacroDefinition: CEED_QFUNCTION_HELPER CEED_QFUNCTION_HELPER_ATTR static inline
1368
1370
1369
1371
const CeedInt_FMT = " d"
1370
1372
@@ -1374,7 +1376,7 @@ const CEED_VERSION_MINOR = 11
1374
1376
1375
1377
const CEED_VERSION_PATCH = 0
1376
1378
1377
- const CEED_VERSION_RELEASE = true
1379
+ const CEED_VERSION_RELEASE = false
1378
1380
1379
1381
# Skipping MacroDefinition: CEED_INTERN extern CEED_VISIBILITY ( hidden )
1380
1382
0 commit comments