]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do the next step. Doesn't work right now, so comment out.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Feb 2011 19:47:48 +0000 (19:47 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 18 Feb 2011 19:47:48 +0000 (19:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@23400 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 140b2c6f235de409848d7900af03969f19722185..f088ac7680623ed1a867fde50ef958cabb38a223 100644 (file)
@@ -199,7 +199,17 @@ void StokesProblem<dim>::setup_dofs ()
   for (typename hp::DoFHandler<dim>::active_cell_iterator
         cell = dof_handler.begin_active();
        cell != dof_handler.end(); ++cell)
-    cell->set_active_fe_index (0);
+    if (((cell->center()[0] < 0)
+        &&
+        (cell->center()[1] > 0.5))
+       ||
+       ((cell->center()[0] >= 0)
+        &&
+        (cell->center()[1] > -0.5)))
+      cell->set_active_fe_index (0);
+//TODO: doesn't work right now due to domination issues
+    // else
+    //   cell->set_active_fe_index (1);
 
   dof_handler.distribute_dofs (fe_collection);
   DoFRenumbering::Cuthill_McKee (dof_handler);

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.