From: bangerth Date: Fri, 18 Feb 2011 19:47:48 +0000 (+0000) Subject: Do the next step. Doesn't work right now, so comment out. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0c6e87f160d0d89cb58420ef90811116d16ed97;p=dealii-svn.git Do the next step. Doesn't work right now, so comment out. git-svn-id: https://svn.dealii.org/trunk@23400 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-46/step-46.cc b/deal.II/examples/step-46/step-46.cc index 140b2c6f23..f088ac7680 100644 --- a/deal.II/examples/step-46/step-46.cc +++ b/deal.II/examples/step-46/step-46.cc @@ -199,7 +199,17 @@ void StokesProblem::setup_dofs () for (typename hp::DoFHandler::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);