From 046fc591b9f718ee5403e77413e1bc95e269ef27 Mon Sep 17 00:00:00 2001 From: janssen Date: Wed, 6 Jan 2010 10:09:51 +0000 Subject: [PATCH] changed MGTools::count_dofs_per_component to count_dofs_per_block git-svn-id: https://svn.dealii.org/trunk@20306 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-42/Makefile | 3 ++- deal.II/examples/step-42/step-42.cc | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/deal.II/examples/step-42/Makefile b/deal.II/examples/step-42/Makefile index a4436031f6..00dc3010fe 100644 --- a/deal.II/examples/step-42/Makefile +++ b/deal.II/examples/step-42/Makefile @@ -23,8 +23,9 @@ debug-mode = on # designated by a single-character variable, since that can be # reference using $D only, i.e. without the parentheses that are # required for most other parameters, as e.g. in $(target). -D = ../../ +# D = ../../ +D = ~/deal.II_mg/deal.II # The last field specifies the names of data and other files that # shall be deleted when calling `make clean'. Object and backup files, diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 2ff706f99a..794db35448 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -451,10 +451,13 @@ void StokesProblem::setup_dofs () mg_dofs_per_component.resize (nlevels); for (unsigned int level=0; level::solve_mg () mg_smoother(mg_vector_memory); MGLevelObject - smoother_data (0, triangulation.n_levels()); + smoother_data (0, triangulation.n_levels()-1); for (unsigned int level=0; level flow_problem(1); flow_problem.run (); -- 2.39.5