ffcx.formatting

Compiler stage 5: Code formatting.

This module implements the formatting of UFC code from a given dictionary of generated C++ code for the body of each UFC function.

It relies on templates for UFC code available as part of the module ufc_utils.

Functions

format_code(code, parameters)

Format given code in UFC format.

write_code(code_h, code_c, prefix, output_dir)