From ef5ec7c7f2eb8fb02fd89f0a176bee0ff899154a Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 27 Oct 2018 11:36:33 -0400 Subject: [PATCH] step-57: remove unused headers and code. --- examples/step-57/step-57.cc | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/examples/step-57/step-57.cc b/examples/step-57/step-57.cc index e2255fe977..48159b7cb0 100644 --- a/examples/step-57/step-57.cc +++ b/examples/step-57/step-57.cc @@ -21,7 +21,6 @@ // As usual, we start by including some well-known files: #include #include -#include #include #include @@ -37,15 +36,11 @@ #include #include -#include -#include -#include #include #include #include #include -#include #include #include @@ -165,9 +160,6 @@ namespace Step57 {} virtual double value(const Point & p, const unsigned int component) const override; - - virtual void vector_value(const Point &p, - Vector & values) const override; }; template @@ -182,15 +174,6 @@ namespace Step57 return 0; } - template - void BoundaryValues::vector_value(const Point &p, - Vector & values) const - { - for (unsigned int c = 0; c < this->n_components; ++c) - values(c) = BoundaryValues::value(p, c); - } - - // @sect3{BlockSchurPreconditioner for Navier Stokes equations} // // The block @@ -424,11 +407,7 @@ namespace Step57 std::vector> grad_phi_u(dofs_per_cell); std::vector phi_p(dofs_per_cell); - typename DoFHandler::active_cell_iterator cell = - dof_handler.begin_active(), - endc = dof_handler.end(); - - for (; cell != endc; ++cell) + for (const auto &cell : dof_handler.active_cell_iterators()) { fe_values.reinit(cell); -- 2.39.5