]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a couple compiler warnings
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 5 Jun 2023 15:18:04 +0000 (11:18 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 5 Jun 2023 18:47:27 +0000 (14:47 -0400)
include/deal.II/grid/grid_reordering.h
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h
source/base/qprojector.cc

index 9d33c5c81f76f0185801b958f46ab71e07a27fb5..7affe36aaf9d11c42cd4f9950f08f47558bff25c 100644 (file)
@@ -35,7 +35,7 @@ DEAL_II_NAMESPACE_OPEN
  * this class. Usage of the old-style numbering is deprecated.
  */
 template <int dim, int spacedim = dim>
-class DEAL_II_DEPRECATED GridReordering
+class GridReordering
 {
 public:
   /**
index f709a3e85109b38f4217d2e2b2cf6a429c526312..e006b130fd00bb29d3ddcc3350358bfbfd8b64eb 100644 (file)
@@ -3857,7 +3857,7 @@ MGTwoLevelTransferNonNested<dim, LinearAlgebra::distributed::Vector<Number>>::
     // on element faces or vertices and therefore, the partitioner is fine
     IndexSet locally_relevant_dofs(dof_handler_fine.n_dofs());
     if (!this->fine_element_is_continuous &&
-        !dof_handler_fine.get_fe().degree == 0)
+        dof_handler_fine.get_fe().degree != 0)
       locally_relevant_dofs.add_indices(global_dof_indices.begin(),
                                         global_dof_indices.end());
 
index 115534e5f738ea1086ef0ba2c127ec20ed6f7332..fe01e2c5ac04ef5cf636dcc6da92b374fe8677c1 100644 (file)
@@ -769,11 +769,11 @@ QProjector<2>::project_to_all_faces(const ReferenceCell &     reference_cell,
     {
       const auto support_points_line =
         [](const auto &face, const auto &orientation) -> std::vector<Point<2>> {
-        std::array<Point<2>, 2> vertices;
-        std::copy_n(face.first.begin(), face.first.size(), vertices.begin());
-        const auto temp =
-          ReferenceCells::Line.permute_according_orientation(vertices,
-                                                             orientation);
+        ArrayView<const Point<2>> vertices(face.first.begin(),
+                                           face.first.size());
+        const auto                temp =
+          ReferenceCells::Line.permute_by_combined_orientation(vertices,
+                                                               orientation);
         return std::vector<Point<2>>(temp.begin(),
                                      temp.begin() + face.first.size());
       };

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.