]> https://gitweb.dealii.org/ - dealii.git/commitdiff
MGTwoLevelTransfer: make AffineConstraints optional 12892/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 27 Oct 2021 16:01:12 +0000 (18:01 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 27 Oct 2021 16:01:12 +0000 (18:01 +0200)
include/deal.II/multigrid/mg_transfer_global_coarsening.h

index b164c2f0e91643429866cf875a020917d49c215e..a02f83a821737753b1bdeca31c6ed97c61f72000 100644 (file)
@@ -203,8 +203,10 @@ public:
   reinit_geometric_transfer(
     const DoFHandler<dim> &          dof_handler_fine,
     const DoFHandler<dim> &          dof_handler_coarse,
-    const AffineConstraints<Number> &constraint_fine,
-    const AffineConstraints<Number> &constraint_coarse,
+    const AffineConstraints<Number> &constraint_fine =
+      AffineConstraints<Number>(),
+    const AffineConstraints<Number> &constraint_coarse =
+      AffineConstraints<Number>(),
     const unsigned int mg_level_fine   = numbers::invalid_unsigned_int,
     const unsigned int mg_level_coarse = numbers::invalid_unsigned_int);
 
@@ -221,8 +223,10 @@ public:
   reinit_polynomial_transfer(
     const DoFHandler<dim> &          dof_handler_fine,
     const DoFHandler<dim> &          dof_handler_coarse,
-    const AffineConstraints<Number> &constraint_fine,
-    const AffineConstraints<Number> &constraint_coarse,
+    const AffineConstraints<Number> &constraint_fine =
+      AffineConstraints<Number>(),
+    const AffineConstraints<Number> &constraint_coarse =
+      AffineConstraints<Number>(),
     const unsigned int mg_level_fine   = numbers::invalid_unsigned_int,
     const unsigned int mg_level_coarse = numbers::invalid_unsigned_int);
 
@@ -242,8 +246,10 @@ public:
   void
   reinit(const DoFHandler<dim> &          dof_handler_fine,
          const DoFHandler<dim> &          dof_handler_coarse,
-         const AffineConstraints<Number> &constraint_fine,
-         const AffineConstraints<Number> &constraint_coarse,
+         const AffineConstraints<Number> &constraint_fine =
+           AffineConstraints<Number>(),
+         const AffineConstraints<Number> &constraint_coarse =
+           AffineConstraints<Number>(),
          const unsigned int mg_level_fine   = numbers::invalid_unsigned_int,
          const unsigned int mg_level_coarse = numbers::invalid_unsigned_int);
 

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.