This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

What do _evaluate_basis and _evaluate_dof do? (FFC)

+3 votes

Hi, I'm digging through FFC source code at the moment.

Within the function _compute_element_ir() in ffc/representation.py, there are the following lines:

ir["evaluate_basis"] = _evaluate_basis(ufl_element, element, cell)
ir["evaluate_dof"] = _evaluate_dof(ufl_element, element, cell)

These both make substantial calls to methods of the FIAT element; for example

coeffs = e.get_coeffs()

and

"dofs": [L.pt_dict for L in element.dual_basis()],

But what exactly are _evaluate_basis and _evaluate_dof supposed to produce? I can't find this information in human-readable form in any documentation.

Thanks.

asked Jul 11, 2013 by amcrae FEniCS Novice (150 points)

I recommend you posting to mailing-list. There's a chance that you got answer from other FFC experts who do not participate here - for example Martin Alnaes.

Affirmative.

...