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

Unable to run adaptive Navier-Stokes demo

0 votes

Hi, I am trying to run the demo of auto-adaptive Navier Stokes solver downloaded from,
auto-adaptive Navier Stokes

but I get the following error trying to run it,

W = FunctionSpace(mesh,V*Q)
TypeError: init() takes at least 4 arguments (3 given)

I am running the code as it is after download, Could someone please point out what argument I should include to make the code work?
I use dolfin 1.5.0
Thank you

asked Jun 2, 2016 by newcommer FEniCS Novice (310 points)

1 Answer

0 votes
 
Best answer

Hi, with 1.5.0 you should use the old syntax for creating mixed function spaces, see e.g. the left pane here

answered Jun 4, 2016 by MiroK FEniCS Expert (80,920 points)
selected Jun 5, 2016 by newcommer

That fixed it. Thank you.

...