Dear Seyed, > Extra question: Can we store variables or copy them to all processors? > Since I am filling a variable in a locally owned cell, currently on rank 3. > Then my other ranks, especially the root rank 0 has no clue of the values > which are set. Hence, there has to be a possibility to copy data to other > processors or let them know about the content? > This falls into the category of standard, but very much nontrivial, MPI questions that are unrelated to deal.II itself. How you would implement the point-to-point communication <https://computing.llnl.gov/tutorials/mpi/#Point_to_Point_Routines> of data depends very much on, amongst other things, the type of data that is being transferred, and how/to which processes the information is being broadcast and received.
So I would highly recommend that you take a look at the documentation <https://www.open-mpi.org/doc/v2.0/> for the MPI library that you are using and perhaps also go through a couple of tutorials that focus on MPI and its communication models itself. Otherwise, there are examples <https://github.com/dealii/dealii/search?utf8=%E2%9C%93&q=mpi_send> in the source code and tests <https://github.com/dealii/dealii/blob/master/tests/quick_tests/mpi.cc> that you can use to better understand how you might implement whatever it is that you're trying to do. Regards, Jean-Paul -- 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. For more options, visit https://groups.google.com/d/optout.