ffc.backends.dolfin package

Submodules

ffc.backends.dolfin.capsules module

class ffc.backends.dolfin.capsules.UFCElementNames(name, ufc_finite_element_classnames, ufc_dofmap_classnames)[source]

Bases: object

Encapsulation of the names related to a generated UFC element.

class ffc.backends.dolfin.capsules.UFCFormNames(name, coefficient_names, ufc_form_classname, ufc_finite_element_classnames, ufc_dofmap_classnames, superclassname='Form')[source]

Bases: object

Encapsulation of the names related to a generated UFC form.

ffc.backends.dolfin.form module

ffc.backends.dolfin.form.generate_form(form, classname, error_control)[source]

Generate dolfin wrapper code associated with a form including code for function spaces used in form and typedefs

@param form:
A UFCFormNames instance
@param classname
Name of Form class.

ffc.backends.dolfin.functionspace module

ffc.backends.dolfin.functionspace.apply_function_space_template(name, element_name, dofmap_name)[source]
ffc.backends.dolfin.functionspace.apply_multimesh_function_space_template(name, single_name, element_name, dofmap_name)[source]
ffc.backends.dolfin.functionspace.extract_coefficient_spaces(forms)[source]

Extract a list of tuples

(classname, finite_element_classname, dofmap_classname)

for the coefficient spaces in the set of given forms. This can then be used for input to the function space template.

ffc.backends.dolfin.functionspace.generate_typedefs(form, classname, error_control)[source]

Generate typedefs for test, trial and coefficient spaces relative to a function space.

ffc.backends.dolfin.goalfunctional module

ffc.backends.dolfin.goalfunctional.generate_update_ec(form)[source]

ffc.backends.dolfin.includes module

ffc.backends.dolfin.wrappers module

ffc.backends.dolfin.wrappers.generate_dolfin_code(prefix, header, forms, common_function_space=False, add_guards=False, error_control=False)[source]

Generate complete dolfin wrapper code with given generated names.

@param prefix:
String, prefix for all form names.
@param header:
Code that will be inserted at the top of the file.
@param forms:
List of UFCFormNames instances or single UFCElementNames.
@param common_function_space:
True if common function space, otherwise False
@param add_guards:
True iff guards (ifdefs) should be added
@param error_control:
True iff adaptivity typedefs (ifdefs) should be added

Module contents