From: Wolfgang Bangerth Date: Tue, 27 Jan 2004 16:16:23 +0000 (+0000) Subject: Allow this file to compile and run at least. X-Git-Tag: v8.0.0~15895 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c07397cd6dd17a3dd17bb0c8d82a0f48fb24bf74;p=dealii.git Allow this file to compile and run at least. git-svn-id: https://svn.dealii.org/trunk@8345 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-16/step-16.cc b/deal.II/examples/step-16/step-16.cc index a4c753b7bc..1c6a1d1fd1 100644 --- a/deal.II/examples/step-16/step-16.cc +++ b/deal.II/examples/step-16/step-16.cc @@ -4,7 +4,7 @@ /* $Id$ */ /* Version: $Name$ */ /* */ -/* Copyright (C) 2003 by the deal.II authors */ +/* Copyright (C) 2003, 2004 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -48,6 +49,9 @@ // Then, we need some pre-made // transfer routines between grids. #include + // And a file in which equivalents to the + // DoFTools class are declared: +#include // This is C++ ... see step 5 for // further comments. @@ -162,7 +166,7 @@ void LaplaceProblem::setup_system () mg_sparsity[level].reinit (mg_dof_handler.n_dofs(level), mg_dof_handler.n_dofs(level), mg_dof_handler.max_couplings_between_dofs()); - MGTools:::make_sparsity_pattern (mg_dof_handler, mg_sparsity[level], level); + MGTools::make_sparsity_pattern (mg_dof_handler, mg_sparsity[level], level); mg_sparsity[level].compress(); mg_matrices[level].reinit(mg_sparsity[level]); } @@ -305,7 +309,7 @@ void LaplaceProblem::assemble_multigrid () { // Remember the level of the // current cell. - const unsigned int level = cell->level() + const unsigned int level = cell->level(); cell_matrix.clear (); // Compute the values specified @@ -341,9 +345,9 @@ void LaplaceProblem::assemble_multigrid () // And now add everything // to the matrix on the // right level. - mg_matrices[level]..add (local_dof_indices[i], - local_dof_indices[j], - cell_matrix(i,j)); + mg_matrices[level].add (local_dof_indices[i], + local_dof_indices[j], + cell_matrix(i,j)); }; }; @@ -477,7 +481,7 @@ void LaplaceProblem::run () if (cycle == 0) { // Generate a simple hypercube grid. - GridGenerator::hyper_cube(tr); + GridGenerator::hyper_cube(triangulation); } // If this is not the first