def _create_foo_integral(self, L, ir, parameters, integral_type, declname): """Return implementation of ufc::form::%(declname)s().""" # e.g. subdomain_ids, classnames = ir.create_cell_integral subdomain_ids, classnames = getattr(ir, declname) subdomain_id = L.Symbol("subdomain_id") return generate_return_new_switch(L, subdomain_id, classnames, subdomain_ids)
def create_sub_element(L, ir): classnames = ir.create_sub_element return generate_return_new_switch(L, "i", classnames)
def create_finite_element(self, L, ir): i = L.Symbol("i") classnames = ir.create_finite_element return generate_return_new_switch(L, i, classnames)
def create_dofmap(self, L, ir): i = L.Symbol("i") classnames = ir.create_dofmap return generate_return_new_switch(L, i, classnames)
def create_sub_dofmap(L, ir): classnames = ir.create_sub_dofmap return generate_return_new_switch(L, "i", classnames)