]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix unused variables in dof_handler.cc 5843/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 2 Feb 2018 09:36:50 +0000 (10:36 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 2 Feb 2018 09:36:50 +0000 (10:36 +0100)
source/hp/dof_handler.cc

index 01c0c7d428baca9b658ff2f30c64c8c3666f8464..c3e1074d446f484f7c5481a4b9bce8247ee7b43e 100644 (file)
@@ -597,12 +597,10 @@ namespace internal
         void
         reserve_space (DoFHandler<1,spacedim> &dof_handler)
         {
-          const unsigned int dim = 1;
-
           Assert (dof_handler.finite_elements != nullptr,
-                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
+                  (typename DoFHandler<1,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.finite_elements->size() > 0,
-                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
+                  (typename DoFHandler<1,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.tria->n_levels() > 0,
                   ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),
@@ -621,12 +619,10 @@ namespace internal
         void
         reserve_space (DoFHandler<2,spacedim> &dof_handler)
         {
-          const unsigned int dim = 2;
-
           Assert (dof_handler.finite_elements != nullptr,
-                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
+                  (typename DoFHandler<2,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.finite_elements->size() > 0,
-                  (typename DoFHandler<dim,spacedim>::ExcNoFESelected()));
+                  (typename DoFHandler<2,spacedim>::ExcNoFESelected()));
           Assert (dof_handler.tria->n_levels() > 0,
                   ExcMessage("The current Triangulation must not be empty."));
           Assert (dof_handler.tria->n_levels() == dof_handler.levels.size (),

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.