]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass const scalar arguments by value, rather than reference. 6151/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Apr 2018 16:31:00 +0000 (10:31 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Apr 2018 20:46:18 +0000 (14:46 -0600)
include/deal.II/grid/grid_tools.h
source/grid/grid_tools.cc
source/grid/grid_tools.inst.in

index da0f37e578e2c5e2de03c4f3ce370767d05f2f15..42cd7989e4962dcdc9d86a50aae16c7805689e2f 100644 (file)
@@ -1372,9 +1372,9 @@ namespace GridTools
   compute_mesh_predicate_bounding_box
   ( const MeshType                                                              &mesh,
     const std::function<bool (const typename MeshType::active_cell_iterator &)> &predicate,
-    const unsigned int                                                          &refinement_level = 0,
-    const bool                                                                  &allow_merge = false,
-    const unsigned int                                                          &max_boxes = numbers::invalid_unsigned_int);
+    const unsigned int                                                           refinement_level = 0,
+    const bool                                                                   allow_merge = false,
+    const unsigned int                                                           max_boxes = numbers::invalid_unsigned_int);
 
   /**
    * Given an array of points, use the global bounding box description obtained using
index 5d126f1c0dffeda0d9aedc5ee749c7a955cc7bba..05d1ed41f6da9d71e5234fbcdb01c53a0703bcdc 100644 (file)
@@ -1806,9 +1806,9 @@ next_cell:
   compute_mesh_predicate_bounding_box
   (const MeshType                                                              &mesh,
    const std::function<bool (const typename MeshType::active_cell_iterator &)> &predicate,
-   const unsigned int                                                          &refinement_level,
-   const bool                                                                  &allow_merge,
-   const unsigned int                                                          &max_boxes)
+   const unsigned int                                                           refinement_level,
+   const bool                                                                   allow_merge,
+   const unsigned int                                                           max_boxes)
   {
     // Algorithm brief description: begin with creating bounding boxes of all cells at
     // refinement_level (and coarser levels if there are active cells) which have the predicate
index f8e55bc93b7eaae9d36a006fc3925bcca5b1f06b..53248ff85b1ef2665a660822b919dda057c8b4cb 100644 (file)
@@ -31,8 +31,11 @@ for (X : TRIANGULATIONS; deal_II_dimension : DIMENSIONS ; deal_II_space_dimensio
     template
     std::vector < BoundingBox< deal_II_space_dimension > >
     compute_mesh_predicate_bounding_box< X >
-    (const X &, const std::function<bool (const dealii::internal::ActiveCellIterator<deal_II_dimension, deal_II_space_dimension, X>::type&)> &,
-     const unsigned int &, const bool&, const unsigned int &);
+    (const X &,
+     const std::function<bool (const dealii::internal::ActiveCellIterator<deal_II_dimension, deal_II_space_dimension, X>::type&)> &,
+     const unsigned int,
+     const bool,
+     const unsigned int);
     \}
 
 #endif

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.