]> https://gitweb.dealii.org/ - dealii.git/commitdiff
hp::FEValues::reinit() pass be reference 10706/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 15 Jul 2020 12:53:14 +0000 (14:53 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 15 Jul 2020 12:53:14 +0000 (14:53 +0200)
include/deal.II/hp/fe_values.h
source/hp/fe_values.cc
source/hp/fe_values.inst.in

index 2debb37cb5c4b84740cc1bcf3b430ba0dcd0ed85..afa767edfadb1149798fcac97c9a40f509436e8c 100644 (file)
@@ -351,7 +351,7 @@ namespace hp
      */
     template <bool lda>
     void
-    reinit(const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> cell,
+    reinit(const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> &cell,
            const unsigned int q_index       = numbers::invalid_unsigned_int,
            const unsigned int mapping_index = numbers::invalid_unsigned_int,
            const unsigned int fe_index      = numbers::invalid_unsigned_int);
@@ -470,8 +470,8 @@ namespace hp
      */
     template <bool lda>
     void
-    reinit(const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> cell,
-           const unsigned int                                      face_no,
+    reinit(const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> &cell,
+           const unsigned int                                       face_no,
            const unsigned int q_index       = numbers::invalid_unsigned_int,
            const unsigned int mapping_index = numbers::invalid_unsigned_int,
            const unsigned int fe_index      = numbers::invalid_unsigned_int);
@@ -566,9 +566,9 @@ namespace hp
      */
     template <bool lda>
     void
-    reinit(const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> cell,
-           const unsigned int                                      face_no,
-           const unsigned int                                      subface_no,
+    reinit(const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> &cell,
+           const unsigned int                                       face_no,
+           const unsigned int                                       subface_no,
            const unsigned int q_index       = numbers::invalid_unsigned_int,
            const unsigned int mapping_index = numbers::invalid_unsigned_int,
            const unsigned int fe_index      = numbers::invalid_unsigned_int);
index aa7c60f98393756672b956308792ffb22049ba39..aa71011de22b5f022450faae69a8639fb3ab428b 100644 (file)
@@ -226,10 +226,10 @@ namespace hp
   template <bool lda>
   void
   FEValues<dim, spacedim>::reinit(
-    const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> cell,
-    const unsigned int                                      q_index,
-    const unsigned int                                      mapping_index,
-    const unsigned int                                      fe_index)
+    const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> &cell,
+    const unsigned int                                       q_index,
+    const unsigned int                                       mapping_index,
+    const unsigned int                                       fe_index)
   {
     // determine which indices we
     // should actually use
@@ -337,11 +337,11 @@ namespace hp
   template <bool lda>
   void
   FEFaceValues<dim, spacedim>::reinit(
-    const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> cell,
-    const unsigned int                                      face_no,
-    const unsigned int                                      q_index,
-    const unsigned int                                      mapping_index,
-    const unsigned int                                      fe_index)
+    const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> &cell,
+    const unsigned int                                       face_no,
+    const unsigned int                                       q_index,
+    const unsigned int                                       mapping_index,
+    const unsigned int                                       fe_index)
   {
     // determine which indices we
     // should actually use
@@ -450,12 +450,12 @@ namespace hp
   template <bool lda>
   void
   FESubfaceValues<dim, spacedim>::reinit(
-    const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> cell,
-    const unsigned int                                      face_no,
-    const unsigned int                                      subface_no,
-    const unsigned int                                      q_index,
-    const unsigned int                                      mapping_index,
-    const unsigned int                                      fe_index)
+    const TriaIterator<DoFCellAccessor<dim, spacedim, lda>> &cell,
+    const unsigned int                                       face_no,
+    const unsigned int                                       subface_no,
+    const unsigned int                                       q_index,
+    const unsigned int                                       mapping_index,
+    const unsigned int                                       fe_index)
   {
     // determine which indices we
     // should actually use
index 592ab00cbd8db9524627e0261d3fc9a4e850372f..8452c99ca584ee45139f0db88abf779e36326ab1 100644 (file)
@@ -91,23 +91,23 @@ for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS;
 
       template void
       FEValues<deal_II_dimension, deal_II_space_dimension>::reinit(
-        TriaIterator<
-          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>>,
+        const TriaIterator<
+          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>> &,
         unsigned int,
         unsigned int,
         unsigned int);
       template void
       FEFaceValues<deal_II_dimension, deal_II_space_dimension>::reinit(
-        TriaIterator<
-          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>>,
+        const TriaIterator<
+          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>> &,
         unsigned int,
         unsigned int,
         unsigned int,
         unsigned int);
       template void
       FESubfaceValues<deal_II_dimension, deal_II_space_dimension>::reinit(
-        TriaIterator<
-          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>>,
+        const TriaIterator<
+          DoFCellAccessor<deal_II_dimension, deal_II_space_dimension, lda>> &,
         unsigned int,
         unsigned int,
         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.