From 7989a7748cd7839d13eb0a1c20169bbfaac783c0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 23 Jun 2017 09:05:42 -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. --- 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 86f8794735..17a074f515 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -434,8 +434,7 @@ namespace internal template static unsigned int - distribute_dofs_on_level (const unsigned int offset, - const types::subdomain_id level_subdomain_id, + distribute_dofs_on_level (const types::subdomain_id level_subdomain_id, DoFHandler &dof_handler, const unsigned int level) { @@ -457,7 +456,7 @@ namespace internal tria.save_user_flags(user_flags); const_cast &>(tria).clear_user_flags (); - unsigned int next_free_dof = offset; + unsigned int next_free_dof = 0; typename DoFHandler::level_cell_iterator cell = dof_handler.begin(level), endc = dof_handler.end(level); @@ -971,7 +970,7 @@ namespace internal for (unsigned int level = 0; level < dof_handler->get_triangulation().n_levels(); ++level) { const types::global_dof_index next_free_dof - = Implementation::distribute_dofs_on_level(0, numbers::invalid_subdomain_id, + = Implementation::distribute_dofs_on_level(numbers::invalid_subdomain_id, *dof_handler, level); // set up the number cache of this level @@ -2537,8 +2536,7 @@ namespace internal //* 1. distribute on own subdomain const unsigned int n_initial_local_dofs = - Implementation::distribute_dofs_on_level(0, - tr->locally_owned_subdomain(), + Implementation::distribute_dofs_on_level(tr->locally_owned_subdomain(), *dof_handler, level); -- 2.39.5