DOLFIN not attaching spatial dim to UFL functions (from Python)
Bug #844642 reported by
Garth Wells
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UFL |
Fix Released
|
High
|
Martin Sandve Alnæs |
Bug Description
I'm getting a UFL error from the Python interface when using the UFL commands lhs/rhs because UFL is not getting the spatial dim for coefficient functions in forms. lhs/rhs calls expand_derivatives, and then this bails out because the spatial dim is unknown (although I'm taking derivatives of the coefficient function). I expect that DOLFIN is failing to attach this data.
I'll post a short piece of code soon and look into, unless someone sees a quick fix.
Related branches
Changed in dolfin: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.0-rc1 |
Changed in dolfin: | |
assignee: | nobody → Anders Logg (logg) |
affects: | dolfin → ufl |
Changed in ufl: | |
milestone: | 1.0-rc1 → none |
assignee: | Anders Logg (logg) → Martin Sandve Alnæs (martinal) |
status: | Confirmed → Fix Committed |
Changed in ufl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
On closer inspection, I do have a derivative. The problem is in taking spatial derivatives of a Constant, which behind the scenes is a 'Real'. Can UFL be updated to handle this case?