FFC

Element mapping is not provided to ufl.Form.compute_form_data()

Bug #785143 reported by Martin Sandve Alnæs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FFC
Invalid
High
Unassigned

Bug Description

FFC does not provide an element mapping to ufl.Form.compute_form_data(). This is needed when used from PyDOLFIN, to make forms well defined when coefficients are missing cells.

I have some failing code, will need to simplify it before I post it here.

description: updated
Revision history for this message
Martin Sandve Alnæs (martinal) wrote :
Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

The last line can be replaced by the slightly simpler
norm = assemble(grad(f)[0]*dx)
to get the same bug.

Changed in ffc:
status: New → Confirmed
importance: Undecided → High
Changed in ffc:
milestone: none → 0.9.11
Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

Actually, I would like to see PyDOLFIN construct the element mapping. It is dolfin that constructs the undefined cells, and it's just not right that the form compilers should have to work around that.

Revision history for this message
Martin Sandve Alnæs (martinal) wrote :

In an upcoming commit, the element mapping is now constructed automatically by ufl in preprocess in the case of invalid cells. Thus ffc (and sfc) do not need to pass a mapping unless you want to override things like degree and family.

Note that there may still be issues with the above code snippet, but I'll close this bug and report eventual other bugs separately if necessary.

Changed in ffc:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.