]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix various warnings 6997/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 29 Jul 2018 17:17:22 +0000 (19:17 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 29 Jul 2018 17:17:22 +0000 (19:17 +0200)
examples/step-17/step-17.cc
examples/step-18/step-18.cc
examples/step-36/step-36.cc
examples/step-55/step-55.cc
source/grid/grid_generator.cc

index 62a4ddf519f511443b48f8e2a2a27b214c1b83e3..e2caf3a2f83bd8d793d09224a681721091e7d7fa 100644 (file)
@@ -68,8 +68,8 @@
 // simply map to sequential, local vectors and matrices if there is only a
 // single process, i.e. if you are running on only one machine, and without
 // MPI support):
-#include <deal.II/lac/petsc_parallel_vector.h>
-#include <deal.II/lac/petsc_parallel_sparse_matrix.h>
+#include <deal.II/lac/petsc_vector.h>
+#include <deal.II/lac/petsc_sparse_matrix.h>
 // Then we also need interfaces for solvers and preconditioners that PETSc
 // provides:
 #include <deal.II/lac/petsc_solver.h>
index 176f46b8c111115197dffb21c1ce16567623d8b2..5796801b572fe8a59baa517e3878ae1e077d4a84 100644 (file)
@@ -30,8 +30,8 @@
 #include <deal.II/lac/vector.h>
 #include <deal.II/lac/full_matrix.h>
 #include <deal.II/lac/dynamic_sparsity_pattern.h>
-#include <deal.II/lac/petsc_parallel_vector.h>
-#include <deal.II/lac/petsc_parallel_sparse_matrix.h>
+#include <deal.II/lac/petsc_vector.h>
+#include <deal.II/lac/petsc_sparse_matrix.h>
 #include <deal.II/lac/petsc_solver.h>
 #include <deal.II/lac/petsc_precondition.h>
 #include <deal.II/lac/affine_constraints.h>
index d44c11290813ff28dc3e55b274dac738ebd03733..fe6e593e15d10319fd0701b52ebf1e32e1af475d 100644 (file)
@@ -50,7 +50,7 @@
 
 // PETSc appears here because SLEPc depends on this library:
 #include <deal.II/lac/petsc_sparse_matrix.h>
-#include <deal.II/lac/petsc_parallel_vector.h>
+#include <deal.II/lac/petsc_vector.h>
 
 // And then we need to actually import the interfaces for solvers that SLEPc
 // provides:
index e417e727e5fbd7c6b621b395ac8a49ec0e2a7610..92bfdf7747491c96079188e3b929a7378cd83676 100644 (file)
@@ -49,8 +49,8 @@ namespace LA
 #include <deal.II/lac/affine_constraints.h>
 #include <deal.II/lac/dynamic_sparsity_pattern.h>
 
-#include <deal.II/lac/petsc_parallel_sparse_matrix.h>
-#include <deal.II/lac/petsc_parallel_vector.h>
+#include <deal.II/lac/petsc_sparse_matrix.h>
+#include <deal.II/lac/petsc_vector.h>
 #include <deal.II/lac/petsc_solver.h>
 #include <deal.II/lac/petsc_precondition.h>
 
index a05207881cf892a1ed4da8a95a0a5187df288c2b..e868b93980a1c7d35915b62902608f532dc38bec 100644 (file)
@@ -4738,7 +4738,7 @@ namespace GridGenerator
 
     auto min_line_length = [](const Triangulation<dim> &tria) -> double {
       double length = std::numeric_limits<double>::max();
-      for (const auto cell : tria.active_cell_iterators())
+      for (const auto &cell : tria.active_cell_iterators())
         for (unsigned int n = 0; n < GeometryInfo<dim>::lines_per_cell; ++n)
           length = std::min(length, cell->line(n)->diameter());
       return length;
@@ -4783,6 +4783,8 @@ namespace GridGenerator
       [center, radial_vertex_tolerance](
         const TriaIterator<TriaAccessor<dim - 1, dim, dim>> face,
         const double                                        radius) {
+        (void)center;
+        (void)radial_vertex_tolerance;
         (void)face;
         (void)radius;
         for (unsigned int vertex_n = 0;

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.