From: Wolfgang Bangerth Date: Tue, 5 Jan 2010 17:27:49 +0000 (+0000) Subject: Use just implemented facilities for setting component to block mapping. X-Git-Tag: v8.0.0~6692 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec425edcec05a26f16ad49e0976f16f2f8534a4e;p=dealii.git Use just implemented facilities for setting component to block mapping. git-svn-id: https://svn.dealii.org/trunk@20298 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 22557a4b9a..2ff706f99a 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -862,6 +862,9 @@ void StokesProblem::solve_mg () GrowingVectorMemory > mg_vector_memory; MGTransferPrebuilt > mg_transfer(constraints); + std::vector block_component (dim+1,0); + block_component[dim] = 1; + mg_transfer.set_component_to_block_map (block_component); mg_transfer.build_matrices(dof_handler); FullMatrix mg_coarse_matrix;