From 4153eaac085db7757abf7ca248749500488cb476 Mon Sep 17 00:00:00 2001 From: Wolfgang 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