]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning regarding unused variable in MeshLoop 7066/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 15 Aug 2018 13:59:09 +0000 (15:59 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 15 Aug 2018 14:05:28 +0000 (16:05 +0200)
include/deal.II/meshworker/mesh_loop.h

index a8fe5b4e707daba4cf159fa5a821485f58925c8d..14b8e41db88ce012b65501eae9d03f22992a847f 100644 (file)
@@ -228,8 +228,6 @@ namespace MeshWorker
                                       dimension>::faces_per_cell;
              ++face_no)
           {
-            typename CellIteratorType::AccessorType::Container::face_iterator
-              face = cell->face(face_no);
             if (cell->at_boundary(face_no) &&
                 !cell->has_periodic_neighbor(face_no))
               {
@@ -361,7 +359,8 @@ namespace MeshWorker
                         cell->periodic_neighbor_face_no(face_no) :
                         cell->neighbor_face_no(face_no);
                     Assert(periodic_neighbor ||
-                             neighbor->face(neighbor_face_no) == face,
+                             neighbor->face(neighbor_face_no) ==
+                               cell->face(face_no),
                            ExcInternalError());
 
                     face_worker(cell,

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.