ffc.backends.ufc package

Submodules

ffc.backends.ufc.coordinate_mapping module

ffc.backends.ufc.dofmap module

ffc.backends.ufc.finite_element module

ffc.backends.ufc.form module

ffc.backends.ufc.function module

ffc.backends.ufc.integrals module

Module contents

Code generation format strings for UFC (Unified Form-assembly Code)

Five format strings are defined for each of the following UFC classes:

cell_integral exterior_facet_integral interior_facet_integral custom_integral cutcell_integral interface_integral overlap_integral function

finite_element dofmap coordinate_mapping form

The strings are named:

‘<classname>_header’ ‘<classname>_implementation’ ‘<classname>_combined’ ‘<classname>_jit_header’ ‘<classname>_jit_implementation’

The header and implementation contain the definition and declaration of the class respectively, and are meant to be placed in .h and .cpp files, while the combined version is for an implementation within a single .h header. The _jit_ versions are used in the jit compiler and contains some additional factory functions exported as extern “C” to allow construction of compiled objects through ctypes without dealing with C++ ABI and name mangling issues.

Each string has at least the following format variables: ‘classname’, ‘members’, ‘constructor’, ‘destructor’, plus one for each interface function with name equal to the function name.

For more information about UFC and the FEniCS Project, visit

ffc.backends.ufc.all_ufc_classnames()[source]

Build list of all classnames.

ffc.backends.ufc.get_include_path()[source]

Return location of UFC header files

ffc.backends.ufc.get_ufc_cxx_flags()[source]

Return C++ flags for compiling UFC C++11 code.

Return type is a list of strings.

Used internally in some tests.

ffc.backends.ufc.get_ufc_signature()[source]

Return SHA-1 hash of the contents of ufc.h and ufc_geometry.h.

In this implementation, the value is computed on import.

ffc.backends.ufc.get_ufc_templates_signature()[source]

Return SHA-1 hash of the ufc code templates.

In this implementation, the value is computed on import.

ffc.backends.ufc.ufc_signature()

Return SHA-1 hash of the contents of ufc.h and ufc_geometry.h.

In this implementation, the value is computed on import.