]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify aliases in step-16 7298/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 8 Oct 2018 04:46:10 +0000 (06:46 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 8 Oct 2018 04:46:10 +0000 (06:46 +0200)
examples/step-16/step-16.cc

index 295793eba9f10c94a7ba1a533a0735bbb10b53b8..d9c4ce9c1a92a51f377259b401797674893f04a6 100644 (file)
@@ -380,13 +380,12 @@ namespace Step16
   {
     MappingQ1<dim> mapping;
 
-    using Iterator = decltype(this->dof_handler.begin_active());
-
-    auto cell_worker = [&](const Iterator &  cell,
-                           ScratchData<dim> &scratch_data,
-                           CopyData &        copy_data) {
-      this->cell_worker(cell, scratch_data, copy_data);
-    };
+    auto cell_worker =
+      [&](const typename DoFHandler<dim>::active_cell_iterator &cell,
+          ScratchData<dim> &                                    scratch_data,
+          CopyData &                                            copy_data) {
+        this->cell_worker(cell, scratch_data, copy_data);
+      };
 
     auto copier = [&](const CopyData &cd) {
       this->constraints.distribute_local_to_global(cd.cell_matrix,
@@ -449,13 +448,12 @@ namespace Step16
         boundary_constraints[level].close();
       }
 
-    using Iterator = decltype(this->dof_handler.begin_mg());
-
-    auto cell_worker = [&](const Iterator &  cell,
-                           ScratchData<dim> &scratch_data,
-                           CopyData &        copy_data) {
-      this->cell_worker(cell, scratch_data, copy_data);
-    };
+    auto cell_worker =
+      [&](const typename DoFHandler<dim>::active_cell_iterator &cell,
+          ScratchData<dim> &                                    scratch_data,
+          CopyData &                                            copy_data) {
+        this->cell_worker(cell, scratch_data, copy_data);
+      };
 
     auto copier = [&](const CopyData &cd) {
       boundary_constraints[cd.level].distribute_local_to_global(

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.