]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove DoFHandlerType from sparse_matrix_collection.h 10626/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 29 Jun 2020 07:31:28 +0000 (09:31 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 29 Jun 2020 07:31:28 +0000 (09:31 +0200)
include/deal.II/multigrid/sparse_matrix_collection.h

index 607c22645706e308d037680893d1cf5365a69789..4200a1f91e6d67b43d11312ba507e57060f6311c 100644 (file)
@@ -44,9 +44,9 @@ namespace mg
     void
     resize(const unsigned int minlevel, const unsigned int maxlevel);
 
-    template <typename DoFHandlerType>
+    template <int dim, int spacedim>
     void
-    reinit(const DoFHandlerType &dof_handler);
+    reinit(const DoFHandler<dim, spacedim> &dof_handler);
 
     void
     set_zero();
@@ -83,9 +83,10 @@ namespace mg
 
 
   template <typename number>
-  template <typename DoFHandlerType>
+  template <int dim, int spacedim>
   void
-  SparseMatrixCollection<number>::reinit(const DoFHandlerType &dof_handler)
+  SparseMatrixCollection<number>::reinit(
+    const DoFHandler<dim, spacedim> &dof_handler)
   {
     AssertIndexRange(sparsity.max_level(),
                      dof_handler.get_triangulation().n_levels());

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.