What's wrong for my program dimension?

If you want to receive help, you need to supply a minimal code (in text form) that reproduces the error.
The code should be wrapped as

```python
import dolfinx
#add rest of code here

```

General comment to your code. If you want to solve your problem for both V and W, you need to use a MixedElement. See:
https://docs.fenicsproject.org/dolfinx/v0.6.0/python/demos/demo_stokes.html#non-blocked-direct-solver
or any of the approaches further up if you want a more technical (But better perfoming) code.

1 Like