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

source/dofs/dof_handler_policy.cc

index 86f87947354c3b799e53f571240fd8b4eba483cb..17a074f5151a6ab900bbed266e4986fd4fe035cd 100644 (file)
@@ -434,8 +434,7 @@ namespace internal
         template <int dim, int spacedim>
         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<dim,spacedim> &dof_handler,
                                   const unsigned int level)
         {
@@ -457,7 +456,7 @@ namespace internal
           tria.save_user_flags(user_flags);
           const_cast<dealii::Triangulation<dim,spacedim> &>(tria).clear_user_flags ();
 
-          unsigned int next_free_dof = offset;
+          unsigned int next_free_dof = 0;
           typename DoFHandler<dim,spacedim>::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);
 

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.