# Can not multiply FunctionSpaces in current version

**URL:** <https://fenicsproject.discourse.group/t/can-not-multiply-functionspaces-in-current-version/2804>\
**Category:** Uncategorized\
**Created:** [April 3, 2020, 2:59pm UTC](https://fenicsproject.discourse.group/t/can-not-multiply-functionspaces-in-current-version/2804 "2020-04-03T14:59:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergei24](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Sergei24](https://fenicsproject.discourse.group/u/Sergei24)\
**Post date:** [April 3, 2020, 2:59pm UTC](https://fenicsproject.discourse.group/t/can-not-multiply-functionspaces-in-current-version/2804/1 "2020-04-03T14:59:36Z")

</div>

Hi all!

I have tried to run my old example with current Anaconda version and it has stopped with error:  
“unsupported operand(s) type” for operator \*

My MWE is:  
from dolfin import \*  
mesh = IntervalMesh(99,0,1.)  
V = FunctionSpace(mesh, “CG”, 1)  
ME = V\*V

What should I use now for it?

---

<div class="post-metadata">

**Author:** ![kamensky](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kamensky](https://fenicsproject.discourse.group/u/kamensky)\
**Post date:** [April 3, 2020, 3:19pm UTC](https://fenicsproject.discourse.group/t/can-not-multiply-functionspaces-in-current-version/2804/2 "2020-04-03T15:19:09Z")

</div>

In the current stable version, mixed spaces are constructed at the element level:

```python
from dolfin import *
mesh = IntervalMesh(99,0,1.)

# Old:
#V = FunctionSpace(mesh, "CG", 1)
#M = V*V

# Current equivalent:
VE = FiniteElement("CG",mesh.ufl_cell(),1)
ME = MixedElement([VE,VE])

# Alternative to calling MixedElement constructor:
#ME = VE*VE

M = FunctionSpace(mesh,ME)

```
