]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use just implemented facilities for setting component to block mapping.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jan 2010 17:27:49 +0000 (17:27 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Jan 2010 17:27:49 +0000 (17:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@20298 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-42/step-42.cc

index 22557a4b9a474bc7678425b2e8e352cd1c071af6..2ff706f99afea37299e4ae312dd7e02eeea0d266 100644 (file)
@@ -862,6 +862,9 @@ void StokesProblem<dim>::solve_mg ()
   GrowingVectorMemory<BlockVector<double> >  mg_vector_memory;
 
   MGTransferPrebuilt<BlockVector<double> > mg_transfer(constraints);
+  std::vector<unsigned int> 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<float> mg_coarse_matrix;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.