This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Mixed formulation for Poisson equation

+1 vote

Hello, I have downloaded demo_mixed-poisson.py from https://fenicsproject.org/olddocs/dolfin/2016.1.0/python/demo/documented/mixed-poisson/python/documentation.html but when I was trying to run this script I have faced with one issue:

    Traceback (most recent call last):
  File "demo_mixed-poisson.py", line 52, in <module>
    W = FunctionSpace(mesh, BDM * DG)
TypeError: __init__() takes at least 4 arguments (3 given)

What was that, how can I handle it? Thank you.

asked Jan 8, 2017 by userqwerty FEniCS Novice (190 points)

Hi, what version are you using? (from terminal run dolfin-version)

dolfin-version is 1.5.0

1 Answer

+1 vote
 
Best answer

That's too old due to changes in the MixedFunctionSpace, see here under 2016.1.0 section. The demo code you can run with your version can be found here.

answered Jan 8, 2017 by MiroK FEniCS Expert (80,920 points)
selected Jan 11, 2017 by johannr

ok, thank you.

...