From: wolf Date: Fri, 14 Sep 2001 12:10:38 +0000 (+0000) Subject: . X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea12f470129761be6e1562d48de803cf3a9995a;p=dealii-svn.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()); };