|
23 | 23 |
|
24 | 24 | from tsfc.coffee import generate as generate_coffee |
25 | 25 | from tsfc import fem, ufl_utils, spectral |
26 | | -from tsfc.driver import lower_integral_type |
| 26 | +from tsfc.driver import TSFCIntegralDataInfo |
| 27 | +from tsfc.kernel_interface.common import lower_integral_type |
27 | 28 | from tsfc.parameters import default_parameters |
28 | 29 | from tsfc.finatinterface import create_element |
29 | 30 | from finat.quadrature import make_quadrature |
@@ -548,11 +549,19 @@ def dg_injection_kernel(Vf, Vc, ncell): |
548 | 549 |
|
549 | 550 | Vce = create_element(Vc.ufl_element()) |
550 | 551 |
|
551 | | - coarse_builder = firedrake_interface.KernelBuilder("cell", "otherwise", 0, ScalarType_c) |
| 552 | + info = TSFCIntegralDataInfo(domain=Vc.mesh(), |
| 553 | + integral_type="cell", |
| 554 | + subdomain_id="otherwise", |
| 555 | + domain_number=0, |
| 556 | + arguments=(ufl.TestFunction(Vc), ), |
| 557 | + coefficients=(), |
| 558 | + coefficient_numbers=()) |
| 559 | + |
| 560 | + coarse_builder = firedrake_interface.KernelBuilder(info, parameters["scalar_type"]) |
552 | 561 | coarse_builder.set_coordinates(Vc.mesh()) |
553 | | - argument_multiindices = (Vce.get_indices(), ) |
| 562 | + argument_multiindices = coarse_builder.argument_multiindices |
554 | 563 | argument_multiindex, = argument_multiindices |
555 | | - return_variable, = coarse_builder.set_arguments((ufl.TestFunction(Vc), ), argument_multiindices) |
| 564 | + return_variable, = coarse_builder.return_variables |
556 | 565 |
|
557 | 566 | integration_dim, entity_ids = lower_integral_type(Vce.cell, "cell") |
558 | 567 | # Midpoint quadrature for jacobian on coarse cell. |
|
0 commit comments