I have a question that if ghost_indices should be past to a vector's reinit? In step-40 and line 89 of this test <https://github.com/dealii/dealii/blob/master/tests/mpi/solution_transfer_04.cc#:~:text=solution.reinit(locally_owned_dofs,%20MPI_COMM_WORLD);>, system_rhs and solution are reinit with reinit(local_dofs, mpi_communicator) only. But in line 95 of that test <https://github.com/dealii/dealii/blob/master/tests/mpi/solution_transfer_04.cc#:~:text=old_solution.reinit(locally_owned_dofs,>, we need ghost_indices as argument. That's same for one of my code, where I found a bug because I didn't use locally_relevant_dofs when reinit a system_rhs. To reduce mistakes, should vectors always be reinit with ghost_indices then ?
Thank you -- 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/a6f7c108-040e-418a-81cb-38a719eef8fcn%40googlegroups.com.