]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-8: use {} instead of very long type.
authorDavid Wells <drwells@email.unc.edu>
Wed, 15 Apr 2020 19:13:29 +0000 (15:13 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 17 Apr 2020 15:07:53 +0000 (11:07 -0400)
examples/step-6/step-6.cc
examples/step-8/step-8.cc

index a7cfd5eace78eac0a6e7d45bf3ff41bd5d52f440..a8cf3bf413abb66eac1f797ce08a86ec66342db2 100644 (file)
@@ -408,12 +408,11 @@ void Step6<dim>::refine_grid()
 {
   Vector<float> estimated_error_per_cell(triangulation.n_active_cells());
 
-  KellyErrorEstimator<dim>::estimate(
-    dof_handler,
-    QGauss<dim - 1>(fe.degree + 1),
-    std::map<types::boundary_id, const Function<dim> *>(),
-    solution,
-    estimated_error_per_cell);
+  KellyErrorEstimator<dim>::estimate(dof_handler,
+                                     QGauss<dim - 1>(fe.degree + 1),
+                                     {},
+                                     solution,
+                                     estimated_error_per_cell);
 
   // The above function returned one error indicator value for each cell in
   // the <code>estimated_error_per_cell</code> array. Refinement is now done
index 4b658b76c0e9072f63fe948aee64a10dd2cd157a..52f7de2a75d31a6cd6895caee9f1fd6387528e97 100644 (file)
@@ -459,12 +459,11 @@ namespace Step8
   {
     Vector<float> estimated_error_per_cell(triangulation.n_active_cells());
 
-    KellyErrorEstimator<dim>::estimate(
-      dof_handler,
-      QGauss<dim - 1>(fe.degree + 1),
-      std::map<types::boundary_id, const Function<dim> *>(),
-      solution,
-      estimated_error_per_cell);
+    KellyErrorEstimator<dim>::estimate(dof_handler,
+                                       QGauss<dim - 1>(fe.degree + 1),
+                                       {},
+                                       solution,
+                                       estimated_error_per_cell);
 
     GridRefinement::refine_and_coarsen_fixed_number(triangulation,
                                                     estimated_error_per_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.