From: Wolfgang Bangerth Date: Fri, 14 Sep 2001 12:10:38 +0000 (+0000) Subject: . X-Git-Tag: v8.0.0~18790 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca10f51fab1d5176a51db322da927b0aef039522;p=dealii.git . git-svn-id: https://svn.dealii.org/trunk@5008 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-11/step-11.cc b/deal.II/examples/step-11/step-11.cc index 13a869057f..6ed00efc4e 100644 --- a/deal.II/examples/step-11/step-11.cc +++ b/deal.II/examples/step-11/step-11.cc @@ -132,8 +132,13 @@ void LaplaceProblem::setup_system () { // The first task is trivial: // generate an enumeration of the - // degrees of freedom: + // degrees of freedom, and + // initialize solution and right + // hand side vector to their + // correct sizes: dof_handler.distribute_dofs (fe); + solution.reinit (dof_handler.n_dofs()); + system_rhs.reinit (dof_handler.n_dofs()); // Next task is to construct the // object representing the @@ -192,9 +197,6 @@ void LaplaceProblem::setup_system () sparsity_pattern.copy_from (csp); system_matrix.reinit (sparsity_pattern); - - solution.reinit (dof_handler.n_dofs()); - system_rhs.reinit (dof_handler.n_dofs()); };