Expressions lacking all variables should give a better error message
Bug #1063841 reported by
Patrick Farrell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When a user creates an Expression but doesn't specify all variables:
from dolfin import *
a = Expression("a")
one gets an error message:
RuntimeError: expected a default value to all member variables in the Expression.
but it can be a lot of work to figure out which one is missing, especially if your expression is very complicated.
With the attached patch, the error message is much more useful:
RuntimeError: expected a default value to all member variables in the Expression: missing ['a']
Related branches
Changed in dolfin: | |
status: | New → In Progress |
Changed in dolfin: | |
status: | In Progress → Fix Committed |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.