Skip to content

Commit 908d0b7

Browse files
chrisrichardsonschnellerhase
authored andcommitted
Remove wrapper
1 parent 28f38ec commit 908d0b7

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

ffcx/codegeneration/numba/file_template.py

-11
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,6 @@
4040
ufcx_quadrature_element = 2
4141
ufcx_basix_custom_element = 3
4242
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-
5443
"""
5544

5645
implementation_post = """

ffcx/codegeneration/numba/integrals.py

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def generator(ir, options):
5252
tensor_size *= dim
5353
n_coeff = len(ir.enabled_coefficients)
5454
n_const = len(ir.expression.original_constant_offsets)
55+
5556
header = f"""
5657
A = numba.carray(_A, ({tensor_size}))
5758
w = numba.carray(_w, ({n_coeff}))

0 commit comments

Comments
 (0)