Merge lp:~fluidity-core/fluidity/firedrake-mixed-space-expressions into lp:fluidity/firedrake
Status: | Rejected |
---|---|
Rejected by: | Lawrence Mitchell |
Proposed branch: | lp:~fluidity-core/fluidity/firedrake-mixed-space-expressions |
Merge into: | lp:fluidity/firedrake |
Diff against target: |
501 lines (+280/-52) 4 files modified
python/firedrake/assemble_expressions.py (+99/-37) python/firedrake/core_types.pyx (+130/-13) python/firedrake/ufl_expr.py (+7/-0) tests/firedrake_expressions/test_firedrake_expressions.py (+44/-2) |
To merge this branch: | bzr merge lp:~fluidity-core/fluidity/firedrake-mixed-space-expressions |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Ham | Needs Fixing | ||
Review via email: mp+183478@code.launchpad.net |
Description of the change
Adds minimal infrastructure for mixed function spaces, along with support for expression evaluation.
LHS form assembly does not work correctly, because of a mismatch in what pyop2 wants and ffc generates. I believe that is on someone's roadmap.
So this is more an early review request to see if this the correct approach.
As a bonus, expression evaluation is fixed for vector function spaces. And errors are correctly raised for augmented assignment on mismatched function spaces.
Unmerged revisions
- 4300. By Lawrence Mitchell
-
Add more docstrings
- 4299. By Lawrence Mitchell
-
Implement more expressions on mixed spaces
Instead of carrying around a slot on every class we need to index, just
keep a global index object that we look at if trying to generate an
expression over a mixed space.This simplifies the code, and makes implementing correct expression
assembly for Indexed and ComponentTensor expressions much easier. So
do that, and add appropriate tests. - 4298. By Lawrence Mitchell
-
Add some tests of mixed space expressions
- 4297. By Lawrence Mitchell
-
Add docstrings to MixedFunctionSpace
- 4296. By Lawrence Mitchell
-
Support expressions on mixed spaces
As a bonus, this fixes expressions on VectorFunctionS
paces and
correctly raises an error for augmented assignment on mismatching
FunctionSpaces. - 4295. By Lawrence Mitchell
-
Add rudimentary support for mixed function spaces
Please add docstrings, especially in core_types.pyx
Please add tests for such functionality as exists. For example firedrake_ expressions could be expanded or duplicated to have some mixed functionspace cases in it.
Does any of the PyOP2 interaction work? For example if RHS assembly works then a simple integral test could be included.