]> https://gitweb.dealii.org/ - dealii.git/commitdiff
MatrixFreeTools: fix some refs and const 14995/head
authorSebastian Proell <sebastian.proell@tum.de>
Thu, 30 Mar 2023 15:45:46 +0000 (17:45 +0200)
committerSebastian Proell <sebastian.proell@tum.de>
Thu, 30 Mar 2023 15:45:46 +0000 (17:45 +0200)
include/deal.II/matrix_free/tools.h

index 61082de1bd006885ecd29bf0ac9ad4dcbfa5f59e..e31a6515c57aff4826688a10539d50fb8b085e5d 100644 (file)
@@ -234,15 +234,15 @@ namespace MatrixFreeTools
                 const MatrixFree<dim, Number, VectorizedArrayType> &,
                 VectorTypeOut &,
                 const VectorTypeIn &,
-                const std::pair<unsigned int, unsigned int>)> &cell_operation,
-              VectorTypeOut &                                  dst,
-              const VectorTypeIn &                             src,
-              const bool zero_dst_vector = false)
+                const std::pair<unsigned int, unsigned int> &)> &cell_operation,
+              VectorTypeOut &                                    dst,
+              const VectorTypeIn &                               src,
+              const bool zero_dst_vector = false) const
     {
       const auto ebd_cell_operation = [&](const auto &matrix_free,
                                           auto &      dst,
                                           const auto &src,
-                                          const auto  range) {
+                                          const auto &range) {
         const auto category = matrix_free.get_cell_range_category(range);
 
         if (category != fe_index_valid)
@@ -268,26 +268,26 @@ namespace MatrixFreeTools
            void(const MatrixFree<dim, Number, VectorizedArrayType> &,
                 VectorTypeOut &,
                 const VectorTypeIn &,
-                const std::pair<unsigned int, unsigned int>)> &cell_operation,
+                const std::pair<unsigned int, unsigned int> &)> &cell_operation,
          const std::function<
            void(const MatrixFree<dim, Number, VectorizedArrayType> &,
                 VectorTypeOut &,
                 const VectorTypeIn &,
-                const std::pair<unsigned int, unsigned int>)> &face_operation,
+                const std::pair<unsigned int, unsigned int> &)> &face_operation,
          const std::function<
            void(const MatrixFree<dim, Number, VectorizedArrayType> &,
                 VectorTypeOut &,
                 const VectorTypeIn &,
-                const std::pair<unsigned int, unsigned int>,
+                const std::pair<unsigned int, unsigned int> &,
                 const bool)> &boundary_operation,
          VectorTypeOut &      dst,
          const VectorTypeIn & src,
-         const bool           zero_dst_vector = false)
+         const bool           zero_dst_vector = false) const
     {
       const auto ebd_cell_operation = [&](const auto &matrix_free,
                                           auto &      dst,
                                           const auto &src,
-                                          const auto  range) {
+                                          const auto &range) {
         const auto category = matrix_free.get_cell_range_category(range);
 
         if (category != fe_index_valid)
@@ -300,7 +300,7 @@ namespace MatrixFreeTools
         [&](const auto &matrix_free,
             auto &      dst,
             const auto &src,
-            const auto  range) {
+            const auto &range) {
           const auto category = matrix_free.get_face_range_category(range);
 
           const unsigned int type =

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.