]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't use a reference for a 'const unsigned int'. 7119/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 25 Aug 2018 13:19:39 +0000 (07:19 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 25 Aug 2018 13:27:26 +0000 (07:27 -0600)
include/deal.II/fe/fe_enriched.h
source/fe/fe_enriched.cc
source/fe/fe_enriched.inst.in

index a7e903819d3fab0e7cbd9f301b723639f8c5c25d..012a35b8ebadfaadc95e839ef24867dd6e1b37c3 100644 (file)
@@ -890,7 +890,7 @@ namespace ColorEnriched
     template <int dim, int spacedim>
     void
     make_colorwise_enrichment_functions(
-      const unsigned int &                                    n_colors,
+      const unsigned int                                      n_colors,
       const std::vector<std::shared_ptr<Function<spacedim>>> &enrichments,
       const std::map<unsigned int, std::map<unsigned int, unsigned int>>
         &cellwise_color_predicate_map,
@@ -916,7 +916,7 @@ namespace ColorEnriched
     template <int dim, int spacedim>
     void
     make_fe_collection_from_colored_enrichments(
-      const unsigned int &n_colors,
+      const unsigned int n_colors,
       const std::vector<std::set<unsigned int>>
         &fe_sets, // total list of color sets possible
       const std::vector<std::function<const Function<spacedim> *(
index 4eaa94646b63bdba04602763bce65e2ed0b8bc5b..a7f482d8cab8d7de2a62c19806f80e6c732755e1 100644 (file)
@@ -1334,7 +1334,7 @@ namespace ColorEnriched
     template <int dim, int spacedim>
     void
     make_colorwise_enrichment_functions(
-      const unsigned int &                                    n_colors,
+      const unsigned int                                      n_colors,
       const std::vector<std::shared_ptr<Function<spacedim>>> &enrichments,
       const std::map<unsigned int, std::map<unsigned int, unsigned int>>
         &cellwise_color_predicate_map,
@@ -1382,7 +1382,7 @@ namespace ColorEnriched
     template <int dim, int spacedim>
     void
     make_fe_collection_from_colored_enrichments(
-      const unsigned int &                       n_colors,
+      const unsigned int                         n_colors,
       const std::vector<std::set<unsigned int>> &fe_sets,
       const std::vector<std::function<const Function<spacedim> *(
         const typename Triangulation<dim, spacedim>::cell_iterator &)>>
index cf527af200dc48ae3df71e0177731d91c58eeeea..2711744997e904a5eadbcae7387660aa42cf0ff7 100644 (file)
@@ -58,7 +58,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS)
         template void
         make_colorwise_enrichment_functions<deal_II_dimension,
                                             deal_II_space_dimension>(
-          const unsigned int &num_colors,
+          const unsigned int n_colors,
           const std::vector<std::shared_ptr<Function<deal_II_space_dimension>>>
             &enrichments,
           const std::map<unsigned int, std::map<unsigned int, unsigned int>>
@@ -71,7 +71,7 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS)
 
         template void
         make_fe_collection_from_colored_enrichments(
-          const unsigned int &                       num_colors,
+          const unsigned int                         n_colors,
           const std::vector<std::set<unsigned int>> &fe_sets,
           const std::vector<
             std::function<const Function<deal_II_space_dimension> *(

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.