From f110fd02330b378119bd3b07f3ea5646fff34efb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 25 Jun 2017 23:43:34 -0600 Subject: [PATCH] Remove an argument to a function that was no longer used. Specifically, it allowed to start enumerating DoFs at something other than zero. There was a time when we allowed that, but that possibility was removed several years ago. The corresponding argument to distribute_mg_dofs() was removed a few days ago, but it was accidently left on distribute_dofs(). --- source/dofs/dof_handler_policy.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 1e95513371..b2778f3f47 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -210,14 +210,13 @@ namespace internal template static types::global_dof_index - distribute_dofs (const types::global_dof_index offset, - const types::subdomain_id subdomain_id, + distribute_dofs (const types::subdomain_id subdomain_id, DoFHandler &dof_handler) { Assert (dof_handler.get_triangulation().n_levels() > 0, ExcMessage("Empty triangulation")); - types::global_dof_index next_free_dof = offset; + types::global_dof_index next_free_dof = 0; typename DoFHandler::active_cell_iterator cell = dof_handler.begin_active(), endc = dof_handler.end(); @@ -926,8 +925,7 @@ namespace internal distribute_dofs () const { const types::global_dof_index n_dofs = - Implementation::distribute_dofs (0, - numbers::invalid_subdomain_id, + Implementation::distribute_dofs (numbers::invalid_subdomain_id, *dof_handler); // return a sequential, complete index set @@ -2246,7 +2244,7 @@ namespace internal //* 1. distribute on own subdomain const dealii::types::global_dof_index n_initial_local_dofs = - Implementation::distribute_dofs (0, tr->locally_owned_subdomain(), + Implementation::distribute_dofs (tr->locally_owned_subdomain(), *dof_handler); //* 2. iterate over ghostcells and kill dofs that are not -- 2.39.5