Skip to content
Snippets Groups Projects
Commit bba8965e authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Simplify assembler_routine_name generator

parent 366c6c7b
No related branches found
No related tags found
No related merge requests found
......@@ -159,31 +159,10 @@ def assembler_routine_name():
integral_type = get_global_context_value("integral_type")
form_type = get_global_context_value("form_type")
if form_type == 'residual':
if integral_type == 'cell':
return "alpha_volume"
if integral_type == 'exterior_facet':
return "alpha_boundary"
if integral_type == 'interior_facet':
return "alpha_skeleton"
part1 = {"residual": "alpha"}.get(form_type, form_type)
part2 = ufl_measure_to_pdelab_measure(integral_type).lower()
if form_type == 'jacobian':
if integral_type == 'cell':
return "jacobian_volume"
if integral_type == 'exterior_facet':
return "jacobian_boundary"
if integral_type == 'interior_facet':
return "jacobian_skeleton"
if form_type == 'jacobian_apply':
if integral_type == 'cell':
return "jacobian_apply_volume"
if integral_type == 'exterior_facet':
return "jacobian_apply_boundary"
if integral_type == 'interior_facet':
return "jacobian_apply_skeleton"
assert False
return "{}_{}".format(part1, part2)
def assembly_routine_signature():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment