]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Compilation with gcc
authorMartin Kronbichler <martin.kronbichler@it.uu.se>
Sun, 12 Dec 2021 17:26:05 +0000 (18:26 +0100)
committerMartin Kronbichler <martin.kronbichler@it.uu.se>
Sun, 12 Dec 2021 19:24:56 +0000 (20:24 +0100)
include/deal.II/fe/mapping_q_internal.h
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 b7069a987fb064bace1fe15cd2ca253391c79f4d..c2ad7ed26298480122a05aee0656e11e458cb4f4 100644 (file)
@@ -1136,7 +1136,7 @@ namespace internal
       temp_data.descriptor.resize(1);
       temp_data.descriptor[0].n_q_points = n_q_points;
       FEEvaluationData<dim, VectorizedArrayType, false> eval(
-        {&data.shape_info, nullptr, &temp_data, 0, 0});
+        std::make_tuple(&data.shape_info, nullptr, &temp_data, 0, 0));
 
       // prepare arrays
       if (evaluation_flag != EvaluationFlags::nothing)
index 8352824a5e6237ab8df042215f8fc97e57f33bb8..149ba8711635970568569111d61146b21a9e16ab 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 < GeometryInfo<dim>::max_children_per_cell) ?
+              subface_index < Utilities::pow(2, dim)) ?
                i :
                orientation[v][i];
     };
index 08a4d4af57ec70c3068ffa06f80ce92939ad4501..adb254dbb7bb4d1471d71cc0489561ff86a17105 100644 (file)
@@ -7719,8 +7719,8 @@ FEFaceEvaluation<dim,
           if (face_index == numbers::invalid_unsigned_int)
             {
               this->cell_ids[i]              = numbers::invalid_unsigned_int;
-              this->all_face_numbers[i]      = numbers::invalid_unsigned_int;
-              this->all_face_orientations[i] = numbers::invalid_unsigned_int;
+              this->all_face_numbers[i]      = static_cast<std::uint8_t>(-1);
+              this->all_face_orientations[i] = static_cast<std::uint8_t>(-1);
               continue; // invalid face ID: no neighbor on boundary
             }
 
index c5658c9cab7f0a885fed0f970ac5d2d111a5e871..4b524382306381fa9f9346d413a2c857346e5784 100644 (file)
@@ -1134,7 +1134,7 @@ namespace internal
         MappingInfoStorage<dim, dim, VectorizedDouble> temp_data;
         temp_data.copy_descriptor(my_data);
         FEEvaluationData<dim, VectorizedDouble, false> eval(
-          {&shape_info, nullptr, &temp_data, 0, 0});
+          std::make_tuple(&shape_info, nullptr, &temp_data, 0, 0));
 
         AlignedVector<VectorizedDouble> evaluation_data;
         eval.set_data_pointers(&evaluation_data, dim);
@@ -2043,9 +2043,9 @@ namespace internal
         MappingInfoStorage<dim - 1, dim, VectorizedDouble> temp_data;
         temp_data.copy_descriptor(my_data);
         FEEvaluationData<dim, VectorizedDouble, true> eval_int(
-          {&shape_info, nullptr, &temp_data, 0, 0}, true);
+          std::make_tuple(&shape_info, nullptr, &temp_data, 0, 0), true);
         FEEvaluationData<dim, VectorizedDouble, true> eval_ext(
-          {&shape_info, nullptr, &temp_data, 0, 0}, false);
+          std::make_tuple(&shape_info, nullptr, &temp_data, 0, 0), false);
 
         AlignedVector<VectorizedDouble> evaluation_data, evaluation_data_ext;
         eval_int.set_data_pointers(&evaluation_data, dim);
@@ -2159,13 +2159,14 @@ namespace internal
                 face_type[face] <= affine ? 1 : n_q_points;
               for (unsigned int q = 0; q < n_points_compute; ++q)
                 {
-                  const unsigned int face_no = faces[face].interior_face_no;
+                  const unsigned int interior_face_no =
+                    faces[face].interior_face_no;
                   Tensor<2, dim, VectorizedDouble> jac;
                   for (unsigned int e = 0; e < dim; ++e)
                     {
                       const unsigned int ee =
                         ExtractFaceHelper::reorder_face_derivative_indices<dim>(
-                          face_no, e);
+                          interior_face_no, e);
                       for (unsigned int d = 0; d < dim; ++d)
                         jac[d][ee] =
                           eval_int
@@ -2176,7 +2177,7 @@ namespace internal
                     {
                       const unsigned int ee =
                         ExtractFaceHelper::reorder_face_derivative_indices<dim>(
-                          face_no, e);
+                          interior_face_no, e);
                       for (unsigned int d = 0; d < dim; ++d)
                         store_vectorized_array(
                           inv_jac[ee][d],
@@ -2186,7 +2187,8 @@ namespace internal
 
                   if (update_flags_faces & update_jacobian_grads)
                     {
-                      compute_jacobian_grad(face_no, 0, q, inv_jac, eval_int);
+                      compute_jacobian_grad(
+                        interior_face_no, 0, q, inv_jac, eval_int);
                     }
 
                   std::array<Tensor<1, dim, VectorizedDouble>, dim - 1>
@@ -2195,13 +2197,12 @@ namespace internal
                     for (unsigned int e = 0; e < dim; ++e)
                       for (unsigned int f = 0; f < dim; ++f)
                         tangential_vectors[d][e] +=
-                          jac[e][f] *
-                          GeometryInfo<dim>::unit_tangential_vectors[face_no][d]
-                                                                    [f];
+                          jac[e][f] * GeometryInfo<dim>::unit_tangential_vectors
+                                        [interior_face_no][d][f];
 
                   Tensor<1, dim, VectorizedDouble> boundary_form;
                   if (dim == 1)
-                    boundary_form[0] = face_no == 0 ? -1. : 1.;
+                    boundary_form[0] = interior_face_no == 0 ? -1. : 1.;
                   else if (dim == 2)
                     boundary_form = cross_product_2d(tangential_vectors[0]);
                   else if (dim == 3)
@@ -2261,13 +2262,14 @@ namespace internal
 
                   for (unsigned int q = 0; q < n_points_compute; ++q)
                     {
-                      const unsigned int face_no = faces[face].exterior_face_no;
+                      const unsigned int exterior_face_no =
+                        faces[face].exterior_face_no;
                       Tensor<2, dim, VectorizedDouble> jac;
                       for (unsigned int e = 0; e < dim; ++e)
                         {
                           const unsigned int ee =
                             ExtractFaceHelper::reorder_face_derivative_indices<
-                              dim>(face_no, e);
+                              dim>(exterior_face_no, e);
                           for (unsigned int d = 0; d < dim; ++d)
                             jac[d][ee] =
                               eval_ext
@@ -2279,7 +2281,7 @@ namespace internal
                         {
                           const unsigned int ee =
                             ExtractFaceHelper::reorder_face_derivative_indices<
-                              dim>(face_no, e);
+                              dim>(exterior_face_no, e);
                           for (unsigned int d = 0; d < dim; ++d)
                             store_vectorized_array(
                               inv_jac[ee][d],
@@ -2290,7 +2292,7 @@ namespace internal
                       if (update_flags_faces & update_jacobian_grads)
                         {
                           compute_jacobian_grad(
-                            face_no, 1, q, inv_jac, eval_ext);
+                            exterior_face_no, 1, q, inv_jac, eval_ext);
                         }
 
                       my_data.normals_times_jacobians[1][offset + q] =

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.