MixedFunctionSpace leftover in functionspace.py

Issue #715 resolved
Mikael Mortensen created an issue

Just a minor issue. The deprecated MixedFunctionSpace is still found in functionspace.py leading to errors like this when using old-style mixed elements:

V = FunctionSpace(...
VV = V*V

NameError                                 Traceback (most recent call last)
<ipython-input-4-451b2a4b7bec> in <module>()
----> 1 VV = V*V

/home/mikael/Software/Fenics/opt/dev/lib/python2.7/site-packages/dolfin/functions/functionspace.pyc in __mul__(self, other)
    299     def __mul__(self, other):
    300         "Create mixed function space."
--> 301         return MixedFunctionSpace((self, other))
    302 
    303     def __str__(self):

Should probably delete the __mul__ functionality or give a more meaningful error message.

Comments (6)

  1. Log in to comment