From ea67dedda3d55114b6499bc075bdf129ca32a1eb Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 23 Jun 2010 23:20:23 +0000 Subject: [PATCH] Make compile without trouble. git-svn-id: https://svn.dealii.org/trunk@21297 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-45/step-45.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-45/step-45.cc b/deal.II/examples/step-45/step-45.cc index 962fb7d18c..3d1aae1165 100644 --- a/deal.II/examples/step-45/step-45.cc +++ b/deal.II/examples/step-45/step-45.cc @@ -29,6 +29,9 @@ #include #include +#include + + using namespace dealii; // The RightHandSide class is a function // object representing the right-hand side of @@ -130,7 +133,11 @@ void LaplaceProblem::setup_system () { // Here the degrees of freedom are // distributed. dof_handler.distribute_dofs (fe); - std::cout << "Number of active cells: " << triangulation.n_active_cells () << std::endl << "Degrees of freedom: " << dof_handler.n_dofs () << std::endl; + std::cout << "Number of active cells: " + << triangulation.n_active_cells () + << std::endl + << "Degrees of freedom: " << dof_handler.n_dofs () + << std::endl; // Now it is the time for the constraint // matrix. The first constraints we put in // are the periodic boundary @@ -162,8 +169,7 @@ void LaplaceProblem::setup_system () { std::vector > dof_locations; dof_locations.reserve (dof_handler.n_boundary_dofs ()); - - unsigned int dofs_per_face = fe.dofs_per_face; + // Then we loop over all active cells and // check, whether the cell is located at // the boundary. If this is the case, we -- 2.39.5