]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix unused variables in Debug mode 6764/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 15 Jun 2018 11:06:11 +0000 (13:06 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 15 Jun 2018 11:08:44 +0000 (13:08 +0200)
include/deal.II/numerics/error_estimator.templates.h
source/numerics/error_estimator_1d.cc

index 6357100cb175f0856b19323ca7e46c5b68a83b1f..2b8175afc7bc96c850258dbdc8806d483d2e1bf6 100644 (file)
@@ -1254,10 +1254,13 @@ KellyErrorEstimator<dim, spacedim>::estimate(
          ExcIncompatibleNumberOfElements(solutions.size(), errors.size()));
 
   for (const auto &boundary_function : neumann_bc)
-    Assert(boundary_function.second->n_components == n_components,
-           ExcInvalidBoundaryFunction(boundary_function.first,
-                                      boundary_function.second->n_components,
-                                      n_components));
+    {
+      (void)boundary_function;
+      Assert(boundary_function.second->n_components == n_components,
+             ExcInvalidBoundaryFunction(boundary_function.first,
+                                        boundary_function.second->n_components,
+                                        n_components));
+    }
 
   Assert(component_mask.represents_n_components(n_components),
          ExcInvalidComponentMask());
index badb32ca893c921400263660dd9fc7a8f22492b7..f4aad3e0629a502ed6316e3783ad06520b2951d3 100644 (file)
@@ -349,10 +349,13 @@ KellyErrorEstimator<1, spacedim>::estimate(
                     "value map."));
 
   for (const auto boundary_function : neumann_bc)
-    Assert(boundary_function.second->n_components == n_components,
-           ExcInvalidBoundaryFunction(boundary_function.first,
-                                      boundary_function.second->n_components,
-                                      n_components));
+    {
+      (void)boundary_function;
+      Assert(boundary_function.second->n_components == n_components,
+             ExcInvalidBoundaryFunction(boundary_function.first,
+                                        boundary_function.second->n_components,
+                                        n_components));
+    }
 
   Assert(component_mask.represents_n_components(n_components),
          ExcInvalidComponentMask());
@@ -377,10 +380,13 @@ KellyErrorEstimator<1, spacedim>::estimate(
          ExcInvalidCoefficient());
 
   for (const auto &boundary_function : neumann_bc)
-    Assert(boundary_function.second->n_components == n_components,
-           ExcInvalidBoundaryFunction(boundary_function.first,
-                                      boundary_function.second->n_components,
-                                      n_components));
+    {
+      (void)boundary_function;
+      Assert(boundary_function.second->n_components == n_components,
+             ExcInvalidBoundaryFunction(boundary_function.first,
+                                        boundary_function.second->n_components,
+                                        n_components));
+    }
 
   // reserve one slot for each cell and set it to zero
   for (unsigned int n = 0; n < n_solution_vectors; ++n)

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.