"of freedom at these lines have the same "
"value, using the ConstraintMatrix class."));
- // if only one cell: line is at
- // boundary -> give it the
- // boundary indicator zero by
- // default
- if (n_adj_cells == 1)
- line->set_boundary_id (0);
- else
- // interior line -> numbers::internal_face_boundary_id
- line->set_boundary_id (numbers::internal_face_boundary_id);
+ // if only one cell: line is at boundary -> give it the boundary
+ // indicator zero by default
+ line->set_boundary_id_internal((n_adj_cells == 1) ? 0 : numbers::internal_face_boundary_id);
line->set_manifold_id(numbers::flat_manifold_id);
}
}
}
else
- line->set_boundary_id (boundary_line->boundary_id);
+ line->set_boundary_id_internal(boundary_line->boundary_id);
}
line->set_manifold_id (boundary_line->manifold_id);
}
(n_adj_cells <= 2),
ExcInternalError());
- // if only one cell: quad is at
- // boundary -> give it the
- // boundary indicator zero by
- // default
- if (n_adj_cells == 1)
- quad->set_boundary_id (0);
- else
- // interior quad -> numbers::internal_face_boundary_id
- quad->set_boundary_id (numbers::internal_face_boundary_id);
- // Manifold ids are set
- // independently of where
- // they are
+ // if only one cell: quad is at boundary -> give it the boundary
+ // indicator zero by default
+ quad->set_boundary_id_internal((n_adj_cells == 1) ? 0 : numbers::internal_face_boundary_id);
+
+ // Manifold ids are set independently of where they are
quad->set_manifold_id(numbers::flat_manifold_id);
}
for (typename Triangulation<dim,spacedim>::line_iterator
line=triangulation.begin_line(); line!=triangulation.end_line(); ++line)
{
- line->set_boundary_id (numbers::internal_face_boundary_id);
+ line->set_boundary_id_internal(numbers::internal_face_boundary_id);
line->set_manifold_id(numbers::flat_manifold_id);
}
for (typename Triangulation<dim,spacedim>::quad_iterator
quad=triangulation.begin_quad(); quad!=triangulation.end_quad(); ++quad)
if (quad->at_boundary())
- for (unsigned int l=0; l<4; ++l)
- quad->line(l)->set_boundary_id (0);
+ {
+ for (unsigned int l=0; l<4; ++l)
+ {
+ typename Triangulation<dim,spacedim>::line_iterator line = quad->line(l);
+ line->set_boundary_id_internal(0);
+ }
+ }
///////////////////////////////////////
// now set boundary indicators
ExcMessage ("Duplicate boundary lines are only allowed "
"if they carry the same boundary indicator."));
- line->set_boundary_id (boundary_line->boundary_id);
+ line->set_boundary_id_internal(boundary_line->boundary_id);
// Set manifold id if given
line->set_manifold_id(boundary_line->manifold_id);
}
ExcMessage ("Duplicate boundary quads are only allowed "
"if they carry the same boundary indicator."));
- quad->set_boundary_id (boundary_quad->boundary_id);
+ quad->set_boundary_id_internal (boundary_quad->boundary_id);
quad->set_manifold_id (boundary_quad->manifold_id);
}
switch_1->set_line_orientation(1, switch_2->line_orientation(1));
switch_1->set_line_orientation(2, switch_2->line_orientation(2));
switch_1->set_line_orientation(3, switch_2->line_orientation(3));
- switch_1->set_boundary_id(switch_2->boundary_id());
+ switch_1->set_boundary_id_internal(switch_2->boundary_id());
switch_1->set_manifold_id(switch_2->manifold_id());
switch_1->set_user_index(switch_2->user_index());
if (switch_2->user_flag_set())
switch_2->set_line_orientation(1, switch_1_line_orientations[1]);
switch_2->set_line_orientation(2, switch_1_line_orientations[2]);
switch_2->set_line_orientation(3, switch_1_line_orientations[3]);
- switch_2->set_boundary_id(switch_1_boundary_id);
+ switch_2->set_boundary_id_internal(switch_1_boundary_id);
switch_2->set_manifold_id(switch_1->manifold_id());
switch_2->set_user_index(switch_1_user_index);
if (switch_1_user_flag)
new_lines[l]->clear_user_data();
new_lines[l]->clear_children();
// interior line
- new_lines[l]->set_boundary_id(numbers::internal_face_boundary_id);
+ new_lines[l]->set_boundary_id_internal(numbers::internal_face_boundary_id);
new_lines[l]->set_manifold_id(cell->manifold_id());
}
children[0]->clear_user_flag();
children[1]->clear_user_flag();
- children[0]->set_boundary_id (line->boundary_id());
- children[1]->set_boundary_id (line->boundary_id());
+
+ children[0]->set_boundary_id_internal(line->boundary_id());
+ children[1]->set_boundary_id_internal(line->boundary_id());
children[0]->set_manifold_id (line->manifold_id());
children[1]->set_manifold_id (line->manifold_id());
children[0]->clear_user_flag();
children[1]->clear_user_flag();
- children[0]->set_boundary_id (line->boundary_id());
- children[1]->set_boundary_id (line->boundary_id());
+ children[0]->set_boundary_id_internal(line->boundary_id());
+ children[1]->set_boundary_id_internal(line->boundary_id());
children[0]->set_manifold_id (line->manifold_id());
children[1]->set_manifold_id (line->manifold_id());
new_line->clear_user_flag();
new_line->clear_user_data();
new_line->clear_children();
- new_line->set_boundary_id(quad->boundary_id());
+ new_line->set_boundary_id_internal(quad->boundary_id());
new_line->set_manifold_id(quad->manifold_id());
// child 0 and 1 of a line are switched if the
new_quads[i]->clear_user_flag();
new_quads[i]->clear_user_data();
new_quads[i]->clear_children();
- new_quads[i]->set_boundary_id (quad->boundary_id());
+ new_quads[i]->set_boundary_id_internal(quad->boundary_id());
new_quads[i]->set_manifold_id (quad->manifold_id());
// set all line orientations to true, change
// this after the loop, as we have to consider
new_child[i]->set(internal::Triangulation::TriaObject<1>(old_child[i]->vertex_index(0),
old_child[i]->vertex_index(1)));
- new_child[i]->set_boundary_id(old_child[i]->boundary_id());
+ new_child[i]->set_boundary_id_internal(old_child[i]->boundary_id());
new_child[i]->set_manifold_id(old_child[i]->manifold_id());
new_child[i]->set_user_index(old_child[i]->user_index());
if (old_child[i]->user_flag_set())
switch_1->set_line_orientation(1, switch_2->line_orientation(1));
switch_1->set_line_orientation(2, switch_2->line_orientation(2));
switch_1->set_line_orientation(3, switch_2->line_orientation(3));
- switch_1->set_boundary_id(switch_2->boundary_id());
+ switch_1->set_boundary_id_internal(switch_2->boundary_id());
switch_1->set_manifold_id(switch_2->manifold_id());
switch_1->set_user_index(switch_2->user_index());
if (switch_2->user_flag_set())
switch_2->set_line_orientation(1, switch_1_line_orientations[1]);
switch_2->set_line_orientation(2, switch_1_line_orientations[2]);
switch_2->set_line_orientation(3, switch_1_line_orientations[3]);
- switch_2->set_boundary_id(switch_1_boundary_id);
+ switch_2->set_boundary_id_internal(switch_1_boundary_id);
switch_2->set_manifold_id(switch_1->manifold_id());
switch_2->set_user_index(switch_1_user_index);
if (switch_1_user_flag)
children[0]->clear_user_flag();
children[1]->clear_user_flag();
- children[0]->set_boundary_id (middle_line->boundary_id());
- children[1]->set_boundary_id (middle_line->boundary_id());
+ children[0]->set_boundary_id_internal (middle_line->boundary_id());
+ children[1]->set_boundary_id_internal (middle_line->boundary_id());
children[0]->set_manifold_id (middle_line->manifold_id());
children[1]->set_manifold_id (middle_line->manifold_id());
new_lines[i]->clear_user_flag();
new_lines[i]->clear_user_data();
new_lines[i]->clear_children();
- new_lines[i]->set_boundary_id(quad->boundary_id());
+ new_lines[i]->set_boundary_id_internal(quad->boundary_id());
new_lines[i]->set_manifold_id(quad->manifold_id());
}
new_quads[i]->clear_user_flag();
new_quads[i]->clear_user_data();
new_quads[i]->clear_children();
- new_quads[i]->set_boundary_id (quad->boundary_id());
+ new_quads[i]->set_boundary_id_internal (quad->boundary_id());
new_quads[i]->set_manifold_id (quad->manifold_id());
// set all line orientations to true, change
// this after the loop, as we have to consider
new_lines[i]->clear_user_data();
new_lines[i]->clear_children();
// interior line
- new_lines[i]->set_boundary_id(numbers::internal_face_boundary_id);
+ new_lines[i]->set_boundary_id_internal(numbers::internal_face_boundary_id);
// they inherit geometry description of the hex they belong to
new_lines[i]->set_manifold_id(hex->manifold_id());
}
new_quads[i]->clear_user_data();
new_quads[i]->clear_children();
// interior quad
- new_quads[i]->set_boundary_id (numbers::internal_face_boundary_id);
+ new_quads[i]->set_boundary_id_internal(numbers::internal_face_boundary_id);
// they inherit geometry description of the hex they belong to
new_quads[i]->set_manifold_id (hex->manifold_id());
// set all line orientation flags to true by