]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid an unused-variable warning. 13207/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 9 Jan 2022 20:29:27 +0000 (13:29 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 9 Jan 2022 20:30:08 +0000 (13:30 -0700)
include/deal.II/fe/fe_tools_extrapolate.templates.h

index 6f168e9990cf62ddf43d9f00271ccfdd6f6db664..1558a2a734a1a4e5dcae1cd608d5a10b7a4484e5 100644 (file)
@@ -1808,8 +1808,11 @@ namespace FETools
     // make sure that each cell on the coarsest level is at least once refined,
     // otherwise, these cells can't be treated and would generate a bogus result
     for (const auto &cell : dof2.cell_iterators_on_level(0))
-      Assert(cell->has_children() || cell->is_artificial(),
-             ExcGridNotRefinedAtLeastOnce());
+      {
+        (void)cell;
+        Assert(cell->has_children() || cell->is_artificial(),
+               ExcGridNotRefinedAtLeastOnce());
+      }
 
 
     internal::BlockType<OutVector> u3;

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.