space.function and space.interpolate.
Throughout the tutorial we are using
df = space.interpolate(0, name="df")
to initialize discrete functions. This is not appropriate, especially since the call
df = space.function(name="df")
produces the exact same result, but without compilation and grid traversal.
This should be cleaned, i.e. keeping only space.function
or otherwise improving the situation.
In addition, space.function
also takes an expression which then does the same as space.interpolate
.