On 1/18/21 1:29 PM, Animesh Rastogi IIT Gandhinagar wrote:
How should I initialize the "index set" that is required for this function? In
step-17
<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dealii.org%2Fcurrent%2Fdoxygen%2Fdeal.II%2Fstep_17.html&data=04%7C01%7CWolfgang.Bangerth%40colostate.edu%7C2c8127fe83f34bdd8e4308d8bbefc22d%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637465985723412724%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wri%2BF49jx4BqWdoLNTpAT3ZrLf%2FNj69MqkKbc%2FtkUsg%3D&reserved=0>,
it uses the locally_owned_dofs to initialize the index set, however, that
program was for multiple machines which is not the case with me.
If you have only one processor, then the locally_owned_dofs are simply all
DoFs. You can use the same function you use to get the locally_owned_dofs set
on every processor in the parallel context, but an easier way is to call
complete_index_set(dof_handler.n_dofs())
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/7b9541a3-e5f9-a7e9-8c62-702eec42c6f3%40colostate.edu.