From 32305202575ce97cf9c11888bccd3613db11bb2d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 12 Feb 2010 13:16:36 +0000 Subject: [PATCH] Document a couple functions. git-svn-id: https://svn.dealii.org/trunk@20566 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-16/step-16.cc | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/deal.II/examples/step-16/step-16.cc b/deal.II/examples/step-16/step-16.cc index 9766fd58e8..bd9382e5ba 100644 --- a/deal.II/examples/step-16/step-16.cc +++ b/deal.II/examples/step-16/step-16.cc @@ -547,6 +547,24 @@ void LaplaceProblem::solve () + // @sect4{Postprocessing} + + // The following two functions postprocess a + // solution once it is computed. In + // particular, the first one refines the mesh + // at the beginning of each cycle while the + // second one outputs results at the end of + // each such cycle. The functions are almost + // unchanged from those in step-6, with the + // exception of two minor differences: The + // KellyErrorEstimator::estimate function + // wants an argument of type DoFHandler, not + // MGDoFHandler, and so we have to cast from + // derived to base class; and we generate + // output in VTK format, to use the more + // modern visualization programs available + // today compared to those that were + // available when step-6 was written. template void LaplaceProblem::refine_grid () { @@ -564,7 +582,6 @@ void LaplaceProblem::refine_grid () } - template void LaplaceProblem::output_results (const unsigned int cycle) const { @@ -584,7 +601,16 @@ void LaplaceProblem::output_results (const unsigned int cycle) const } + // @sect4{LaplaceProblem::run} + // Like several of the functions above, this + // is almost exactly a copy of of the + // corresponding function in step-6. The only + // difference is the call to + // assemble_multigrid that takes + // care of forming the matrices on every + // level that we need in the multigrid + // method. template void LaplaceProblem::run () { -- 2.39.5