Dear Francesco,
the parameter offset in distribute_dofs() is a leftover feature that
never got tested or used and I am not surprised that you discovered
these bugs. I am sorry about that. We are probably going to remove or
at least deprecate this option in the next release.
Instead of using offset you have two options:
1. Create a FESystem with your two finite elements and use one DoFHandler.
2. Keep your code as is and distribute with offset=0 with two
DoFHandlers. When you create a block system (vectors, matrices) you
have to hand .block(2), etc. to the corresponding functions because
each DoFHandler starts numbering from 0.
Option 1 is probably easier to implement if you want to assemble a big
block system, see step-20 for example. If you decouple your problems
manually, you might want to go with option 2. I think step-31 and
step-35 show the approach 2.
Thanks,
Timo
> --
> 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
>
>
--
Timo Heister
http://www.math.tamu.edu/~heister/