]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a few compile warnings
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Sun, 12 Dec 2021 21:58:27 +0000 (22:58 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Sun, 12 Dec 2021 22:47:34 +0000 (23:47 +0100)
include/deal.II/matrix_free/evaluation_kernels.h
include/deal.II/matrix_free/fe_evaluation.h
include/deal.II/matrix_free/mapping_info.templates.h

index 149ba8711635970568569111d61146b21a9e16ab..1467f754cbef38f0b8ad29013a0a175c67b2a6ae 100644 (file)
@@ -3265,7 +3265,7 @@ namespace internal
     const unsigned int subface_index = eval.get_subface_index();
     const auto reorientate = [&](const unsigned int v, const unsigned int i) {
       return (dim < 3 || orientation[v] == nullptr ||
-              subface_index < Utilities::pow(2, dim)) ?
+              subface_index < Utilities::pow(2U, dim)) ?
                i :
                orientation[v][i];
     };
@@ -3493,6 +3493,7 @@ namespace internal
 
             if (vectorization_possible == false)
               {
+                vector_ptrs = {};
                 if (n_face_orientations == 1)
                   {
                     for (unsigned int v = 0; v < n_filled_lanes; ++v)
index adb254dbb7bb4d1471d71cc0489561ff86a17105..f05d1b2ac4f2852cb1423930a61743d82afb5103 100644 (file)
@@ -7141,7 +7141,7 @@ namespace internal
    */
   template <typename Number,
             typename VectorType,
-            typename T,
+            typename EvaluatorType,
             typename std::enable_if<
               internal::has_begin<VectorType>::value &&
                 std::is_same<decltype(std::declval<VectorType>().begin()),
@@ -7149,7 +7149,7 @@ namespace internal
               VectorType>::type * = nullptr>
   bool
   try_gather_evaluate_inplace(
-    T &                                    phi,
+    EvaluatorType &                        phi,
     const VectorType &                     input_vector,
     const EvaluationFlags::EvaluationFlags evaluation_flag)
   {
@@ -7199,14 +7199,14 @@ namespace internal
    */
   template <typename Number,
             typename VectorType,
-            typename T,
+            typename EvaluatorType,
             typename std::enable_if<
               !internal::has_begin<VectorType>::value ||
                 !std::is_same<decltype(std::declval<VectorType>().begin()),
                               Number *>::value,
               VectorType>::type * = nullptr>
   bool
-  try_gather_evaluate_inplace(T &,
+  try_gather_evaluate_inplace(EvaluatorType &,
                               const VectorType &,
                               const EvaluationFlags::EvaluationFlags)
   {
@@ -7218,7 +7218,7 @@ namespace internal
    */
   template <typename Number,
             typename VectorType,
-            typename T,
+            typename EvaluatorType,
             typename std::enable_if<
               internal::has_begin<VectorType>::value &&
                 std::is_same<decltype(std::declval<VectorType>().begin()),
@@ -7226,7 +7226,7 @@ namespace internal
               VectorType>::type * = nullptr>
   bool
   try_integrate_scatter_inplace(
-    T &                                    phi,
+    EvaluatorType &                        phi,
     VectorType &                           destination,
     const EvaluationFlags::EvaluationFlags evaluation_flag)
   {
@@ -7276,14 +7276,14 @@ namespace internal
    */
   template <typename Number,
             typename VectorType,
-            typename T,
+            typename EvaluatorType,
             typename std::enable_if<
               !internal::has_begin<VectorType>::value ||
                 !std::is_same<decltype(std::declval<VectorType>().begin()),
                               Number *>::value,
               VectorType>::type * = nullptr>
   bool
-  try_integrate_scatter_inplace(T,
+  try_integrate_scatter_inplace(EvaluatorType &,
                                 VectorType &,
                                 const EvaluationFlags::EvaluationFlags)
   {
index 4b524382306381fa9f9346d413a2c857346e5784..54fc917747ddca79f28f74c20304342a79f522a3 100644 (file)
@@ -2056,7 +2056,7 @@ namespace internal
             {
               internal::MatrixFreeFunctions::FaceToCellTopology<
                 VectorizedDouble::size()>
-                face_double;
+                face_double = {};
               face_double.interior_face_no = faces[face].interior_face_no;
               face_double.exterior_face_no = faces[face].exterior_face_no;
               face_double.face_orientation = faces[face].face_orientation;

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.