]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove MatrixFree::DoFHandlers::level 9875/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 11 Apr 2020 13:45:49 +0000 (15:45 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 11 Apr 2020 17:09:30 +0000 (19:09 +0200)
include/deal.II/matrix_free/matrix_free.h
include/deal.II/matrix_free/matrix_free.templates.h

index bcd71ec4fc985dffcfd343f85a70aa2084aa05f6..042e47bd4bf5b04e8a25015fd6630d3b008de461 100644 (file)
@@ -2053,7 +2053,6 @@ private:
     DoFHandlers()
       : active_dof_handler(usual)
       , n_dof_handlers(0)
-      , level(numbers::invalid_unsigned_int)
     {}
 
     std::vector<SmartPointer<const DoFHandler<dim>>>     dof_handler;
@@ -2070,7 +2069,6 @@ private:
       hp
     } active_dof_handler;
     unsigned int n_dof_handlers;
-    unsigned int level;
   };
 
   /**
index 3f973f263c87778335bf0af78e5be75ec0ba4551..5d79b28dfca2e48e3d4c83354e47cc057dcfb78b 100644 (file)
@@ -764,7 +764,6 @@ MatrixFree<dim, Number, VectorizedArrayType>::initialize_dof_handlers(
 {
   cell_level_index.clear();
   dof_handlers.active_dof_handler = DoFHandlers::usual;
-  dof_handlers.level              = additional_data.mg_level;
   dof_handlers.n_dof_handlers     = dof_handler.size();
   dof_handlers.dof_handler.resize(dof_handlers.n_dof_handlers);
   for (unsigned int no = 0; no < dof_handlers.n_dof_handlers; ++no)
@@ -831,10 +830,11 @@ MatrixFree<dim, Number, VectorizedArrayType>::initialize_dof_handlers(
   const std::vector<const hp::DoFHandler<dim> *> &dof_handler,
   const AdditionalData &                          additional_data)
 {
+  (void)additional_data;
+
   cell_level_index.clear();
   dof_handlers.active_dof_handler = DoFHandlers::hp;
-  dof_handlers.level              = additional_data.mg_level;
-  Assert(dof_handlers.level == numbers::invalid_unsigned_int,
+  Assert(additional_data.mg_level == numbers::invalid_unsigned_int,
          ExcNotImplemented());
   dof_handlers.n_dof_handlers = dof_handler.size();
   dof_handlers.hp_dof_handler.resize(dof_handlers.n_dof_handlers);
@@ -1039,7 +1039,7 @@ MatrixFree<dim, Number, VectorizedArrayType>::initialize_indices(
         {
           // read indices from standard DoFHandler in the usual way
           if (dof_handlers.active_dof_handler == DoFHandlers::usual &&
-              dof_handlers.level == numbers::invalid_unsigned_int)
+              additional_data.mg_level == numbers::invalid_unsigned_int)
             {
               const DoFHandler<dim> *dofh = &*dof_handlers.dof_handler[no];
               typename DoFHandler<dim>::active_cell_iterator cell_it(
@@ -1067,10 +1067,10 @@ MatrixFree<dim, Number, VectorizedArrayType>::initialize_indices(
             }
           // we are requested to use a multigrid level
           else if (dof_handlers.active_dof_handler == DoFHandlers::usual &&
-                   dof_handlers.level != numbers::invalid_unsigned_int)
+                   additional_data.mg_level != numbers::invalid_unsigned_int)
             {
               const DoFHandler<dim> *dofh = dof_handlers.dof_handler[no];
-              AssertIndexRange(dof_handlers.level,
+              AssertIndexRange(additional_data.mg_level,
                                dofh->get_triangulation().n_levels());
               typename DoFHandler<dim>::cell_iterator cell_it(
                 &dofh->get_triangulation(),

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.