deprecate 'schemes' in python
At the moment there is a lot of code duplication in dune.fem.operator
and dune.fem.scheme
(see for example current MR on mass lumping).
We could just provide operator' (or
scheme` but that name is not so nice I think).
I see two options:
- check if the ufl argument provides is an equation or not. If it is an equation, we check that the spaces are the same and setup a
scheme
in the current sense. If it is not an equation we setup anoperator
. - make it even simpler by always setting up a scheme is the spaces are the same even if no ufl equation is provided and an operator if not.
Deprecation could be quite straightforward by defining deprecated versions of the public functions in dune.fem.scheme._scheme
in dune.fem.scheme.__init__.py
. The original functions in dune.fem.scheme._scheme
could then still be called in dune.fem.operator
for now but slowly the additional parts required for schemes
could be moved over to operator
.