Mixed boundary conditions - old version does not work

Hello,
I am trying to run code from here 9. Mixed formulation for Poisson equation — FEniCS Project and it does not work. The error

File “demo_mixed-poisson.py”, line 52, in
W = BDM * DG
TypeError: unsupported operand type(s) for *: ‘FunctionSpace’ and ‘FunctionSpace’

Is there an updated version of the same code for the latest stable version (2019) ? Thank you!

Make sure the version of the documentation you’re looking at is either up-to-date, or matches the version of FEniCS you want to use. See, e.g. Mixed formulation for Poisson equation — DOLFIN documentation.

1 Like