]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove an argument to a function that was no longer used. 4546/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 Jun 2017 05:43:34 +0000 (23:43 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 Jun 2017 05:43:34 +0000 (23:43 -0600)
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

index 1e9551337132a8b3fc74a0cb42b7b2bc71e6a6f0..b2778f3f4751d6a15e234db1fe7bfc0767682661 100644 (file)
@@ -210,14 +210,13 @@ namespace internal
         template <int dim, int spacedim>
         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<dim,spacedim>     &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<dim,spacedim>::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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.