]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
update FunctionMap 56/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 21 May 2019 19:54:56 +0000 (14:54 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 21 May 2019 19:54:56 +0000 (14:54 -0500)
CeresFE/src/ceres.cc

index 9039ecb17a91e99cca00e90d2b70f82ac44b877d..1ab413d8a6b3329431d7c7567e05862e4a632358 100644 (file)
@@ -1995,12 +1995,13 @@ namespace Step22
   template<int dim>
   void StokesProblem<dim>::refine_mesh()
   {
+    using FunctionMap = std::map<types::boundary_id, const Function<dim> *>;
     Vector<float> estimated_error_per_cell(triangulation.n_active_cells());
 
     std::vector<bool> component_mask(dim + 1, false);
     component_mask[dim] = true;
     KellyErrorEstimator<dim>::estimate(dof_handler, QGauss<dim - 1>(degree + 1),
-                                       typename FunctionMap<dim>::type(), solution,
+                                       FunctionMap(), solution,
                                        estimated_error_per_cell, component_mask);
 
     GridRefinement::refine_and_coarsen_fixed_number(triangulation,

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.