]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change DoFHandler template 2907/head
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 2 Aug 2016 19:10:28 +0000 (21:10 +0200)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 2 Aug 2016 19:10:28 +0000 (21:10 +0200)
doc/news/changes.h
include/deal.II/dofs/dof_tools.h

index 627b9a6cd2402daa04cefd2e2d608a66aa1eb13c..65a2790bb795ab35fdb9415e8361738a2aaf4932 100644 (file)
@@ -47,6 +47,10 @@ pattern classes, so no generic function would be possible. On the
 other hand, the block list is an object, which only extends over
 locally owned grid cells and its size can be determined efficiently
 upon initialization. Therefore, SparsityPattern is a good choice here.
+
+At the same time, we changed the dof handler template to the type
+DoFHandler, since hp::DoFHandler requires a different setup of the
+SparsityPattern.
 <br>
 (Guido Kanschat, 2016/08/02)
 </li>
index 19e71a8e013bd95d1e8fb263be1e8ff96499dd13..b599fe4f35606e7337e3d8b322edc42e06eb8961 100644 (file)
@@ -1704,8 +1704,8 @@ namespace DoFTools
    * level. This pattern can be used in RelaxationBlock classes as
    * block list for additive and multiplicative Schwarz methods.
    *
-   * The row index in this pattern is the cell index resulting
-   * from standard iteration through the Triangulation. For a
+   * The row index in this pattern is the cell index resulting from
+   * standard iteration through a level of the Triangulation. For a
    * parallel::distributed::Triangulation, only locally owned cells
    * are entered.
    *
@@ -1715,12 +1715,12 @@ namespace DoFTools
    *
    * <tt>selected_dofs</tt> is a vector indexed by the local degrees
    * of freedom on a cell. If it is used, only such dofs are entered
-   * into the block, which are selected. This allows for instance the
-   * exclusion of components or of dofs on the boundary.
+   * into the block list which are selected. This allows for instance
+   * the exclusion of components or of dofs on the boundary.
    */
-  template <typename DoFHandlerType>
+  template <int dim, int spacedim=dim>
   void make_cell_patches(SparsityPattern         &block_list,
-                         const DoFHandlerType    &dof_handler,
+                         const DoFHandler<dim,spacedim> &dof_handler,
                          const unsigned int       level,
                          const std::vector<bool> &selected_dofs = std::vector<bool>(),
                          types::global_dof_index  offset        = 0);

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.