From: Wolfgang Bangerth Date: Mon, 26 Jun 2017 05:43:34 +0000 (-0600) Subject: Remove an argument to a function that was no longer used. X-Git-Tag: v9.0.0-rc1~1472^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f110fd02330b378119bd3b07f3ea5646fff34efb;p=dealii.git 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(). --- 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