Demand default value for expression variables

Registered by Johan Hake

When constructing a compiled Python expression with variables, we should demand a passed default value. This will hide any potential misspellings of builtin DOLFIN variables as DOLFIN_EPS. We can pass them as **kwargs:

  f = Expression(a*sin(x[0]), a=1.0)

Probably need to hide the accepted kwargs (element, aso) as these should come behind the default value declaration.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Medium
Drafter:
Johan Hake
Direction:
Needs approval
Assignee:
Johan Hake
Definition:
Review
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 1.0-beta2
Started by
Johan Hake
Completed by
Johan Hake

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.