From 938fce01285bf2fc28924923a459fb493fb9c450 Mon Sep 17 00:00:00 2001 From: "denis.davydov" Date: Tue, 25 Mar 2014 22:16:07 +0000 Subject: [PATCH] Added calculation of n_locally_owned_dofs_per_processor git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32696 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/dofs/dof_handler_policy.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deal.II/source/dofs/dof_handler_policy.cc b/deal.II/source/dofs/dof_handler_policy.cc index 1ee0a34a2a..3aea13f0dd 100644 --- a/deal.II/source/dofs/dof_handler_policy.cc +++ b/deal.II/source/dofs/dof_handler_policy.cc @@ -970,6 +970,11 @@ namespace internal { Sequential::distribute_dofs (dof_handler,number_cache); DoFRenumbering::subdomain_wise (dof_handler); + const parallel::shared::Triangulation *shared_tr = dynamic_cast*>(&dof_handler.get_tria()); + const unsigned int n_mpi_processes = Utilities::MPI::n_mpi_processes( shared_tr->get_communicator () ); + number_cache.n_locally_owned_dofs_per_processor.resize (n_mpi_processes); + for (unsigned int i=0; i