+ template<int spacedim>
void
- colorize_subdivided_hyper_rectangle (Triangulation<1> &tria,
- const Point<1> &,
- const Point<1> &,
+ colorize_subdivided_hyper_rectangle (Triangulation<1,spacedim> &tria,
+ const Point<spacedim> &,
+ const Point<spacedim> &,
const double)
{
- for (Triangulation<1>::cell_iterator cell = tria.begin();
+ for (typename Triangulation<1,spacedim>::cell_iterator cell = tria.begin();
cell != tria.end(); ++cell)
if (cell->center()(0) > 0)
cell->set_material_id(1);
+DEAL:1-2::hyper_cube
+$NOD
+2
+1 3.00000 0.00000 0
+2 7.00000 0.00000 0
+$ENDNOD
+$ELM
+1
+1 1 0 0 2 1 2
+$ENDELM
+DEAL:1-2::subdivided_hyper_cube
+$NOD
+4
+1 1.00000 0.00000 0
+2 3.00000 0.00000 0
+3 5.00000 0.00000 0
+4 7.00000 0.00000 0
+$ENDNOD
+$ELM
+3
+1 1 0 0 2 1 2
+2 1 0 0 2 2 3
+3 1 0 0 2 3 4
+$ENDELM
+DEAL:1-2::hyper_rectangle
+$NOD
+2
+1 2.00000 0.00000 0
+2 3.00000 0.00000 0
+$ENDNOD
+$ELM
+1
+1 1 0 0 2 1 2
+$ENDELM
+DEAL:1-2::subdivided_hyper_rectangle
+$NOD
+3
+1 2.00000 0.00000 0
+2 2.50000 0.00000 0
+3 3.00000 0.00000 0
+$ENDNOD
+$ELM
+2
+1 1 1 0 2 1 2
+2 1 1 0 2 2 3
+$ENDELM
+DEAL:1-3::hyper_cube
+$NOD
+2
+1 3.00000 0.00000 0.00000
+2 7.00000 0.00000 0.00000
+$ENDNOD
+$ELM
+1
+1 1 0 0 2 1 2
+$ENDELM
+DEAL:1-3::subdivided_hyper_cube
+$NOD
+4
+1 1.00000 0.00000 0.00000
+2 3.00000 0.00000 0.00000
+3 5.00000 0.00000 0.00000
+4 7.00000 0.00000 0.00000
+$ENDNOD
+$ELM
+3
+1 1 0 0 2 1 2
+2 1 0 0 2 2 3
+3 1 0 0 2 3 4
+$ENDELM
+DEAL:1-3::hyper_rectangle
+$NOD
+2
+1 2.00000 0.00000 0.00000
+2 3.00000 0.00000 0.00000
+$ENDNOD
+$ELM
+1
+1 1 0 0 2 1 2
+$ENDELM
+DEAL:1-3::subdivided_hyper_rectangle
+$NOD
+3
+1 2.00000 0.00000 0.00000
+2 2.50000 0.00000 0.00000
+3 3.00000 0.00000 0.00000
+$ENDNOD
+$ELM
+2
+1 1 1 0 2 1 2
+2 1 1 0 2 2 3
+$ENDELM
DEAL:2-3::hyper_cube
$NOD
4