File tree 2 files changed +1
-11
lines changed
ffcx/codegeneration/numba
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 40
40
ufcx_quadrature_element = 2
41
41
ufcx_basix_custom_element = 3
42
42
43
- def wrapper(scalar_type, real_type):
44
-
45
- c_signature = numba.types.void(
46
- numba.types.CPointer(numba.typeof(scalar_type())),
47
- numba.types.CPointer(numba.typeof(scalar_type())),
48
- numba.types.CPointer(numba.typeof(scalar_type())),
49
- numba.types.CPointer(numba.typeof(real_type())),
50
- numba.types.CPointer(numba.types.int32),
51
- numba.types.CPointer(numba.types.int32))
52
- return numba.cfunc(c_signature, nopython=True)
53
-
54
43
"""
55
44
56
45
implementation_post = """
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def generator(ir, options):
52
52
tensor_size *= dim
53
53
n_coeff = len (ir .enabled_coefficients )
54
54
n_const = len (ir .expression .original_constant_offsets )
55
+
55
56
header = f"""
56
57
A = numba.carray(_A, ({ tensor_size } ))
57
58
w = numba.carray(_w, ({ n_coeff } ))
You can’t perform that action at this time.
0 commit comments