Dear Michał,
It looks good to me, except for the matrix number, which should be 3, not 2, if I understand you correctly.
> 0 1 2
> 3 4 5
> 6 7 8
This is the numbering scheme.
>
> Is it possible to use FEValuesExtractors and assemble matrix like in step-20 program ?
Yes. Just do not initialize with block info.
Then, you have a single matrix like in the onedimensional case.
Michał,
In your case the zero only indicates that there might be more.
Another model of assembling is that you separately fill several blocks or matrices. In that case, you would have several matrices.
Best,
Guido
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en