]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate distribute_mg_dofs with one parameter
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 21 Aug 2017 19:02:31 +0000 (21:02 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 22 Aug 2017 12:04:50 +0000 (14:04 +0200)
include/deal.II/dofs/dof_handler.h
source/dofs/dof_handler.cc

index 5314a42c56843d3ed60fda31ea97597cfde4f4af..aa2aba5a54efa896d564e43f44a1a4626074a50c 100644 (file)
@@ -363,8 +363,17 @@ public:
    * multigrid. The active DoFs need to be distributed using distribute_dofs()
    * before calling this function and the @p fe needs to be identical to the
    * finite element passed to distribute_dofs().
+   *
+   * @deprecated Use the version without parameter instead.
+   */
+  virtual void distribute_mg_dofs (const FiniteElement<dim, spacedim> &fe) DEAL_II_DEPRECATED;
+
+  /**
+   * Distribute level degrees of freedom on each level for geometric
+   * multigrid. The active DoFs need to be distributed using distribute_dofs()
+   * before calling this function.
    */
-  virtual void distribute_mg_dofs (const FiniteElement<dim, spacedim> &fe);
+  virtual void distribute_mg_dofs ();
 
   /**
    * This function returns whether this DoFHandler has DoFs distributed on
index c129e3719393aaa9259d3cd12b9e714835296b30..393bb4df44813fb26edd297e6db3dbd64250dc88 100644 (file)
@@ -1024,8 +1024,17 @@ void DoFHandler<dim,spacedim>::distribute_dofs (const FiniteElement<dim,spacedim
 }
 
 
+
 template <int dim, int spacedim>
 void DoFHandler<dim, spacedim>::distribute_mg_dofs (const FiniteElement<dim, spacedim> &)
+{
+  this->distribute_mg_dofs();
+}
+
+
+
+template <int dim, int spacedim>
+void DoFHandler<dim, spacedim>::distribute_mg_dofs ()
 {
   Assert(levels.size()>0, ExcMessage("Distribute active DoFs using distribute_dofs() before calling distribute_mg_dofs()."));
 

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.