]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
bug removed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 9 Aug 2003 07:03:48 +0000 (07:03 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 9 Aug 2003 07:03:48 +0000 (07:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@7910 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/multigrid/mg_dof_tools.cc

index d04abdde0c60d57b79aa399e75ba059dfe041773..72319c525509294022a54a5b85415f204c3d5399 100644 (file)
@@ -451,20 +451,17 @@ MGTools::reinit_vector (const MGDoFHandler<dim>& mg_dof,
                         const std::vector<bool>& selected,
                        const std::vector<unsigned int>& target_component)
 {
-  const unsigned int ncomp = mg_dof.get_fe().n_components();
-
   Assert (selected.size() == target_component.size(),
          ExcDimensionMismatch(selected.size(), target_component.size()));
   
                                   // Compute the number of blocks needed
-  if (DEBUG)
-    {
-      const unsigned int n_selected
-       = std::accumulate(selected.begin(),
-                         selected.end(),
-                         0U);
-      Assert(n_selected == 1, ExcDimensionMismatch(n_selected, 1));
-    }
+#ifdef DEBUG
+  const unsigned int n_selected
+    = std::accumulate(selected.begin(),
+                     selected.end(),
+                     0U);
+  Assert(n_selected == 1, ExcDimensionMismatch(n_selected, 1));
+#endif
   
   unsigned int selected_block = 0;
   while (!selected[selected_block])

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.