On 04/20/2018 02:22 AM, 'Maxi Miller' via deal.II User Group wrote:
Furthermore, the documentation for extract_dofs() states that
|
Thesize of selected_dofs must equal DoFHandler::n_dofs() <http://www.dealii.org/developer/doxygen/deal.II/classDoFHandler.html#a54e7270f2ba6206604f794114b39a2aa>
|
while the error message tells me that the vector must have a size of
|
dof.n_locally_owned_dofs()
|
That is slightly confusing...

Yes. I fixed this:
  https://github.com/dealii/dealii/pull/6273


> I already suspected this. Do you have a suggestion how to solve it? Or a
> suggestion for a better approach?

The approach is generally fine, but you need to translate between the two sets of indices. In particular, you need to find the global index of the i'th "locally owned dof". This should be easy by asking the index set of locally owned dofs you can get from the dof handler.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 [email protected]
                           www: http://www.math.colostate.edu/~bangerth/

--
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
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to