Attaching subdomains to a form

Registered by Anders Logg

Subdomains (cell_domains, exterior_facet_domains, interior_facet_domains) must currently be passed as arguments to the assemble function or to a VariationalProblem. This is clumsy. It also prevents using different subdomains for the bilinear and linear forms of a VariationalProblem.

Instead, these arguments should be part of the Form, just like coefficients:

form.cell_domains = cell_domain
form.exterior_facet_domains = exterior_facet_domains
form.interior_facet_domains = interior_facet_domains

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
None
Direction:
Needs approval
Assignee:
Anders Logg
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.9.11
Started by
Anders Logg
Completed by
Anders Logg

Related branches

Sprints

Whiteboard

This is now implemented. The old way of passing arguments to the assembler still exists so it's backwards compatible.
Domains can now be specified (1) as arguments to the assembler, (2) as part of the form, or (3) as part of the mesh. (1) overrides (2) and (2) overrides (3).

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.