From: denis.davydov Date: Tue, 25 Mar 2014 22:16:07 +0000 (+0000) Subject: Added calculation of n_locally_owned_dofs_per_processor X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=938fce01285bf2fc28924923a459fb493fb9c450;p=dealii-svn.git 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 --- 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