]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
cdr: Do not use deprecated FunctionMap type 55/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 21 May 2019 19:46:14 +0000 (14:46 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 21 May 2019 19:46:14 +0000 (14:46 -0500)
cdr/solver/cdr.cc

index f7ef2d8a2d483a785532a4063d1acc7e318a3822..58e1a45f03a0edece9a426bf91b8df7c1e948797 100644 (file)
@@ -232,9 +232,12 @@ void CDRProblem<dim>::time_iterate()
 template<int dim>
 void CDRProblem<dim>::refine_mesh()
 {
+  using FunctionMap =
+    std::map<types::boundary_id, const Function<dim> *>;
+
   Vector<float> estimated_error_per_cell(triangulation.n_active_cells());
   KellyErrorEstimator<dim>::estimate
-  (dof_handler, QGauss<dim - 1>(fe.degree + 1), typename FunctionMap<dim>::type(),
+  (dof_handler, QGauss<dim - 1>(fe.degree + 1), FunctionMap(),
    locally_relevant_solution, estimated_error_per_cell);
 
   // This solver uses a crude refinement strategy where cells with relatively

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.