]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile without trouble.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Jun 2010 23:20:23 +0000 (23:20 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Jun 2010 23:20:23 +0000 (23:20 +0000)
git-svn-id: https://svn.dealii.org/trunk@21297 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-45/step-45.cc

index 962fb7d18c4c8929aa3e3bf696946901e4e69e17..3d1aae1165d7b6360e3113493c7392d9a715fb21 100644 (file)
@@ -29,6 +29,9 @@
 #include <numerics/data_out.h>
 #include <numerics/vectors.h>
 
+#include <fstream>
+
+
 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<std::pair<unsigned int, double> > 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

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.