]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Be more terse about AffineConstraint default arguments.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 21 Aug 2023 22:50:55 +0000 (16:50 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 23 Aug 2023 02:09:40 +0000 (20:09 -0600)
include/deal.II/dofs/dof_tools.h
include/deal.II/lac/affine_constraints.h
include/deal.II/multigrid/mg_tools.h
include/deal.II/non_matching/coupling.h

index bcfafffd047fc7d83c5b5396122aa0720de38c55..722400f2dccc9bc4fe8f56672c68b4dfc5f078e9 100644 (file)
@@ -424,7 +424,7 @@ namespace DoFTools
   make_sparsity_pattern(
     const DoFHandler<dim, spacedim> &dof_handler,
     SparsityPatternBase &            sparsity_pattern,
-    const AffineConstraints<number> &constraints = AffineConstraints<number>(),
+    const AffineConstraints<number> &constraints           = {},
     const bool                       keep_constrained_dofs = true,
     const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id);
 
@@ -499,7 +499,7 @@ namespace DoFTools
     const DoFHandler<dim, spacedim> &dof_handler,
     const Table<2, Coupling> &       coupling,
     SparsityPatternBase &            sparsity_pattern,
-    const AffineConstraints<number> &constraints = AffineConstraints<number>(),
+    const AffineConstraints<number> &constraints           = {},
     const bool                       keep_constrained_dofs = true,
     const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id);
 
@@ -1378,7 +1378,7 @@ namespace DoFTools
     const std::function<
       bool(const typename DoFHandler<dim, spacedim>::active_cell_iterator &)>
       &                              predicate,
-    const AffineConstraints<number> &constraints = AffineConstraints<number>());
+    const AffineConstraints<number> &constraints = {});
 
   /**
    * Extract a vector that represents the constant modes of the DoFHandler for
index 9f0f61d7d77f1a91dbd7553e48b742e823578bb0..8c1036bcb9d615ee3f8c65c6e9974b2467a5c5af 100644 (file)
@@ -557,8 +557,7 @@ public:
    * for the locally relevant DoFs, see
    * @ref GlossLocallyRelevantDof .)
    * Consequently, this constructor creates internal data structures for
-   * <i>all</i> possible
-   * indices will be created, leading to memory consumption on every
+   * <i>all</i> possible indices, leading to memory consumption on every
    * processor that is proportional to the <i>overall</i> size of the
    * problem, not just proportional to the size of the portion of the
    * overall problem that is handled by the current processor. Calling
index 63b3c5e5144554f36ff6f723c5e0c60a0afc1ff1..e16b3330af9149238b37347101d0b50287637d52 100644 (file)
@@ -88,12 +88,11 @@ namespace MGTools
    */
   template <int dim, int spacedim, typename number = double>
   void
-  make_sparsity_pattern(
-    const DoFHandler<dim, spacedim> &dof_handler,
-    SparsityPatternBase &            sparsity,
-    const unsigned int               level,
-    const AffineConstraints<number> &constraints = AffineConstraints<number>(),
-    const bool                       keep_constrained_dofs = true);
+  make_sparsity_pattern(const DoFHandler<dim, spacedim> &dof_handler,
+                        SparsityPatternBase &            sparsity,
+                        const unsigned int               level,
+                        const AffineConstraints<number> &constraints = {},
+                        const bool keep_constrained_dofs             = true);
 
   /**
    * Make a sparsity pattern including fluxes of discontinuous Galerkin
@@ -105,12 +104,11 @@ namespace MGTools
    */
   template <int dim, int spacedim, typename number = double>
   void
-  make_flux_sparsity_pattern(
-    const DoFHandler<dim, spacedim> &dof_handler,
-    SparsityPatternBase &            sparsity,
-    const unsigned int               level,
-    const AffineConstraints<number> &constraints = AffineConstraints<number>(),
-    const bool                       keep_constrained_dofs = true);
+  make_flux_sparsity_pattern(const DoFHandler<dim, spacedim> &dof_handler,
+                             SparsityPatternBase &            sparsity,
+                             const unsigned int               level,
+                             const AffineConstraints<number> &constraints = {},
+                             const bool keep_constrained_dofs = true);
 
 
   /**
index 6517f5b56470b45d75bcf258ac3fa752fa657d3d..88824ee689a644ee5fde2b807f3deb9096f0cc51 100644 (file)
@@ -97,8 +97,8 @@ namespace NonMatching
     const DoFHandler<dim1, spacedim> &immersed_dh,
     const Quadrature<dim1> &          quad,
     SparsityPatternBase &             sparsity,
-    const AffineConstraints<number> & constraints = AffineConstraints<number>(),
-    const ComponentMask &             space_comps = {},
+    const AffineConstraints<number> & constraints    = {},
+    const ComponentMask &             space_comps    = {},
     const ComponentMask &             immersed_comps = {},
     const Mapping<dim0, spacedim> &   space_mapping =
       StaticMappingQ1<dim0, spacedim>::mapping,
@@ -121,10 +121,10 @@ namespace NonMatching
     const DoFHandler<dim1, spacedim> &      immersed_dh,
     const Quadrature<dim1> &                quad,
     SparsityPatternBase &                   sparsity,
-    const AffineConstraints<number> &constraints = AffineConstraints<number>(),
-    const ComponentMask &            space_comps = {},
-    const ComponentMask &            immersed_comps = {},
-    const Mapping<dim1, spacedim> &  immersed_mapping =
+    const AffineConstraints<number> &       constraints    = {},
+    const ComponentMask &                   space_comps    = {},
+    const ComponentMask &                   immersed_comps = {},
+    const Mapping<dim1, spacedim> &         immersed_mapping =
       StaticMappingQ1<dim1, spacedim>::mapping,
     const AffineConstraints<number> &immersed_constraints =
       AffineConstraints<number>());

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.