next_free_line->set_used_flag ();
next_free_line->set_material_id (cells[cell].material_id);
next_free_line->clear_user_pointer ();
+ next_free_line->set_subdomain_id (0);
// note that this cell
// is adjacent to these vertices
cell->set_used_flag ();
cell->set_material_id (cells[c].material_id);
cell->clear_user_pointer ();
+ cell->set_subdomain_id (0);
+
// note that this cell is adjacent
// to the four lines
for (unsigned int line=0; line<4; ++line)
* Since this comparison is not canonical, we do not include it into the
* general Quad class.
*/
-struct QuadComparator {
+struct QuadComparator
+{
inline bool operator () (const Quad &q1, const Quad &q2) const
{
// here is room to optimize the
cell->set_material_id (cells[c].material_id);
cell->clear_user_flag ();
cell->clear_user_pointer ();
+ cell->set_subdomain_id (0);
+
// note that this cell is adjacent
// to the four lines
for (unsigned int quad=0; quad<6; ++quad)
template <int dim>
-void Triangulation<dim>::save_refine_flags (std::vector<bool> &v) const {
+void Triangulation<dim>::save_refine_flags (std::vector<bool> &v) const
+{
v.resize (n_active_cells(), false);
std::vector<bool>::iterator i = v.begin();
active_cell_iterator cell = begin_active(),
};
+
template <int dim>
-void Triangulation<dim>::save_refine_flags (std::ostream &out) const {
+void Triangulation<dim>::save_refine_flags (std::ostream &out) const
+{
std::vector<bool> v;
save_refine_flags (v);
write_bool_vector (mn_tria_refine_flags_begin, v, mn_tria_refine_flags_end,
};
+
template <int dim>
-void Triangulation<dim>::load_refine_flags (std::istream &in) {
+void Triangulation<dim>::load_refine_flags (std::istream &in)
+{
std::vector<bool> v;
read_bool_vector (mn_tria_refine_flags_begin, v, mn_tria_refine_flags_end,
in);
};
+
template <int dim>
-void Triangulation<dim>::load_refine_flags (const std::vector<bool> &v) {
+void Triangulation<dim>::load_refine_flags (const std::vector<bool> &v)
+{
Assert (v.size() == n_active_cells(), ExcGridReadError());
active_cell_iterator cell = begin_active(),
};
+
template <int dim>
-void Triangulation<dim>::save_coarsen_flags (std::vector<bool> &v) const {
+void Triangulation<dim>::save_coarsen_flags (std::vector<bool> &v) const
+{
v.resize (n_active_cells(), false);
std::vector<bool>::iterator i = v.begin();
active_cell_iterator cell = begin_active(),
};
+
template <int dim>
-void Triangulation<dim>::save_coarsen_flags (std::ostream &out) const {
+void Triangulation<dim>::save_coarsen_flags (std::ostream &out) const
+{
std::vector<bool> v;
save_coarsen_flags (v);
write_bool_vector (mn_tria_coarsen_flags_begin, v, mn_tria_coarsen_flags_end,
};
+
template <int dim>
-void Triangulation<dim>::load_coarsen_flags (std::istream &in) {
+void Triangulation<dim>::load_coarsen_flags (std::istream &in)
+{
std::vector<bool> v;
read_bool_vector (mn_tria_coarsen_flags_begin, v, mn_tria_coarsen_flags_end,
in);
};
+
template <int dim>
-void Triangulation<dim>::load_coarsen_flags (const std::vector<bool> &v) {
+void Triangulation<dim>::load_coarsen_flags (const std::vector<bool> &v)
+{
Assert (v.size() == n_active_cells(), ExcGridReadError());
active_cell_iterator cell = begin_active(),
#if deal_II_dimension == 1
template <>
-void Triangulation<1>::clear_user_pointers () {
+void Triangulation<1>::clear_user_pointers ()
+{
cell_iterator cell = begin(),
endc = end();
for (; cell!=endc; ++cell)
};
+
template <>
-void Triangulation<1>::clear_user_flags () {
+void Triangulation<1>::clear_user_flags ()
+{
cell_iterator cell = begin(),
endc = end();
for (; cell!=endc; ++cell)
#if deal_II_dimension == 2
template <>
-void Triangulation<2>::clear_user_pointers () {
+void Triangulation<2>::clear_user_pointers ()
+{
line_iterator line = begin_line(),
endl = end_line();
for (; line!=endl; ++line)
};
+
template <>
-void Triangulation<2>::clear_user_flags () {
+void Triangulation<2>::clear_user_flags ()
+{
line_iterator line = begin_line(),
endl = end_line();
for (; line!=endl; ++line)
#if deal_II_dimension == 3
template <>
-void Triangulation<3>::clear_user_pointers () {
+void Triangulation<3>::clear_user_pointers ()
+{
line_iterator line = begin_line(),
endl = end_line();
for (; line!=endl; ++line)
};
+
template <>
-void Triangulation<3>::clear_user_flags () {
+void Triangulation<3>::clear_user_flags ()
+{
line_iterator line = begin_line(),
endl = end_line();
for (; line!=endl; ++line)
template <int dim>
-void Triangulation<dim>::save_user_flags (std::ostream &out) const {
+void Triangulation<dim>::save_user_flags (std::ostream &out) const
+{
save_user_flags_line (out);
if (dim>=2)
};
+
template <int dim>
-void Triangulation<dim>::save_user_flags (std::vector<bool> &v) const {
+void Triangulation<dim>::save_user_flags (std::vector<bool> &v) const
+{
// clear vector and append
// all the stuff later on
v.clear ();
};
+
template <int dim>
void Triangulation<dim>::load_user_flags (std::istream &in)
{
};
+
template <int dim>
void Triangulation<dim>::load_user_flags (const std::vector<bool> &v)
{
};
+
template <int dim>
-void Triangulation<dim>::save_user_flags_line (std::vector<bool> &v) const {
+void Triangulation<dim>::save_user_flags_line (std::vector<bool> &v) const
+{
v.resize (n_lines(), false);
std::vector<bool>::iterator i = v.begin();
line_iterator line = begin_line(),
};
+
template <int dim>
-void Triangulation<dim>::save_user_flags_line (std::ostream &out) const {
+void Triangulation<dim>::save_user_flags_line (std::ostream &out) const
+{
std::vector<bool> v;
save_user_flags_line (v);
write_bool_vector (mn_tria_line_user_flags_begin, v, mn_tria_line_user_flags_end,
};
+
template <int dim>
-void Triangulation<dim>::load_user_flags_line (std::istream &in) {
+void Triangulation<dim>::load_user_flags_line (std::istream &in)
+{
std::vector<bool> v;
read_bool_vector (mn_tria_line_user_flags_begin, v, mn_tria_line_user_flags_end,
in);
};
+
template <int dim>
-void Triangulation<dim>::load_user_flags_line (const std::vector<bool> &v) {
+void Triangulation<dim>::load_user_flags_line (const std::vector<bool> &v)
+{
Assert (v.size() == n_lines(), ExcGridReadError());
line_iterator line = begin_line(),
#if deal_II_dimension == 1
template <>
-void Triangulation<1>::save_user_flags_quad (std::ostream &) const {
+void Triangulation<1>::save_user_flags_quad (std::ostream &) const
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::save_user_flags_quad (std::vector<bool> &) const {
+void Triangulation<1>::save_user_flags_quad (std::vector<bool> &) const
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::load_user_flags_quad (std::istream &) {
+void Triangulation<1>::load_user_flags_quad (std::istream &)
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::load_user_flags_quad (const std::vector<bool> &) {
+void Triangulation<1>::load_user_flags_quad (const std::vector<bool> &)
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::save_user_flags_hex (std::ostream &) const {
+void Triangulation<1>::save_user_flags_hex (std::ostream &) const
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::save_user_flags_hex (std::vector<bool> &) const {
+void Triangulation<1>::save_user_flags_hex (std::vector<bool> &) const
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::load_user_flags_hex (std::istream &) {
+void Triangulation<1>::load_user_flags_hex (std::istream &)
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<1>::load_user_flags_hex (const std::vector<bool> &) {
+void Triangulation<1>::load_user_flags_hex (const std::vector<bool> &)
+{
Assert (false, ExcFunctionNotUseful());
};
template <int dim>
-void Triangulation<dim>::save_user_flags_quad (std::vector<bool> &v) const {
+void Triangulation<dim>::save_user_flags_quad (std::vector<bool> &v) const
+{
v.resize (n_quads(), false);
std::vector<bool>::iterator i = v.begin();
quad_iterator quad = begin_quad(),
};
+
template <int dim>
-void Triangulation<dim>::save_user_flags_quad (std::ostream &out) const {
+void Triangulation<dim>::save_user_flags_quad (std::ostream &out) const
+{
std::vector<bool> v;
save_user_flags_quad (v);
write_bool_vector (mn_tria_quad_user_flags_begin, v, mn_tria_quad_user_flags_end,
};
+
template <int dim>
-void Triangulation<dim>::load_user_flags_quad (std::istream &in) {
+void Triangulation<dim>::load_user_flags_quad (std::istream &in)
+{
std::vector<bool> v;
read_bool_vector (mn_tria_quad_user_flags_begin, v, mn_tria_quad_user_flags_end,
in);
};
+
template <int dim>
-void Triangulation<dim>::load_user_flags_quad (const std::vector<bool> &v) {
+void Triangulation<dim>::load_user_flags_quad (const std::vector<bool> &v)
+{
Assert (v.size() == n_quads(), ExcGridReadError());
quad_iterator quad = begin_quad(),
#if deal_II_dimension == 2
template <>
-void Triangulation<2>::save_user_flags_hex (std::ostream &) const {
+void Triangulation<2>::save_user_flags_hex (std::ostream &) const
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<2>::save_user_flags_hex (std::vector<bool> &) const {
+void Triangulation<2>::save_user_flags_hex (std::vector<bool> &) const
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<2>::load_user_flags_hex (std::istream &) {
+void Triangulation<2>::load_user_flags_hex (std::istream &)
+{
Assert (false, ExcFunctionNotUseful());
};
+
template <>
-void Triangulation<2>::load_user_flags_hex (const std::vector<bool> &) {
+void Triangulation<2>::load_user_flags_hex (const std::vector<bool> &)
+{
Assert (false, ExcFunctionNotUseful());
};
template <int dim>
-void Triangulation<dim>::save_user_flags_hex (std::vector<bool> &v) const {
+void Triangulation<dim>::save_user_flags_hex (std::vector<bool> &v) const
+{
v.resize (n_hexs(), false);
std::vector<bool>::iterator i = v.begin();
hex_iterator hex = begin_hex(),
};
+
template <int dim>
-void Triangulation<dim>::save_user_flags_hex (std::ostream &out) const {
+void Triangulation<dim>::save_user_flags_hex (std::ostream &out) const
+{
std::vector<bool> v;
save_user_flags_hex (v);
write_bool_vector (mn_tria_hex_user_flags_begin, v, mn_tria_hex_user_flags_end,
};
+
template <int dim>
-void Triangulation<dim>::load_user_flags_hex (std::istream &in) {
+void Triangulation<dim>::load_user_flags_hex (std::istream &in)
+{
std::vector<bool> v;
read_bool_vector (mn_tria_hex_user_flags_begin, v, mn_tria_hex_user_flags_end,
in);
};
+
template <int dim>
-void Triangulation<dim>::load_user_flags_hex (const std::vector<bool> &v) {
+void Triangulation<dim>::load_user_flags_hex (const std::vector<bool> &v)
+{
Assert (v.size() == n_hexs(), ExcGridReadError());
hex_iterator hex = begin_hex(),
template <>
TriaDimensionInfo<1>::raw_cell_iterator
-Triangulation<1>::begin_raw (const unsigned int level) const {
+Triangulation<1>::begin_raw (const unsigned int level) const
+{
return begin_raw_line (level);
};
+
template <>
TriaDimensionInfo<1>::active_cell_iterator
-Triangulation<1>::begin_active (const unsigned int level) const {
+Triangulation<1>::begin_active (const unsigned int level) const
+{
return begin_active_line (level);
};
+
template <>
TriaDimensionInfo<1>::raw_cell_iterator
-Triangulation<1>::last_raw () const {
+Triangulation<1>::last_raw () const
+{
return last_raw_line ();
};
+
template <>
TriaDimensionInfo<1>::raw_cell_iterator
-Triangulation<1>::last_raw (const unsigned int level) const {
+Triangulation<1>::last_raw (const unsigned int level) const
+{
return last_raw_line (level);
};
+
template <>
TriaDimensionInfo<1>::cell_iterator
-Triangulation<1>::last () const {
+Triangulation<1>::last () const
+{
return last_line ();
};
+
template <>
TriaDimensionInfo<1>::cell_iterator
-Triangulation<1>::last (const unsigned int level) const {
+Triangulation<1>::last (const unsigned int level) const
+{
return last_line (level);
};
+
template <>
TriaDimensionInfo<1>::active_cell_iterator
-Triangulation<1>::last_active () const {
+Triangulation<1>::last_active () const
+{
return last_active_line ();
};
+
template <>
TriaDimensionInfo<1>::active_cell_iterator
-Triangulation<1>::last_active (const unsigned int level) const {
+Triangulation<1>::last_active (const unsigned int level) const
+{
return last_active_line (level);
};
+
template <>
TriaDimensionInfo<1>::raw_face_iterator
-Triangulation<1>::begin_raw_face (const unsigned int) const {
+Triangulation<1>::begin_raw_face (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::face_iterator
-Triangulation<1>::begin_face (const unsigned int) const {
+Triangulation<1>::begin_face (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_face_iterator
-Triangulation<1>::begin_active_face (const unsigned int) const {
+Triangulation<1>::begin_active_face (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_face_iterator
-Triangulation<1>::end_face () const {
+Triangulation<1>::end_face () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_face_iterator
-Triangulation<1>::last_raw_face () const {
+Triangulation<1>::last_raw_face () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_face_iterator
-Triangulation<1>::last_raw_face (const unsigned int) const {
+Triangulation<1>::last_raw_face (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::face_iterator
-Triangulation<1>::last_face () const {
+Triangulation<1>::last_face () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::face_iterator
-Triangulation<1>::last_face (const unsigned int) const {
+Triangulation<1>::last_face (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_face_iterator
-Triangulation<1>::last_active_face () const {
+Triangulation<1>::last_active_face () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_face_iterator
-Triangulation<1>::last_active_face (const unsigned int) const {
+Triangulation<1>::last_active_face (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_quad_iterator
-Triangulation<1>::begin_raw_quad (const unsigned int) const {
+Triangulation<1>::begin_raw_quad (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::quad_iterator
-Triangulation<1>::begin_quad (const unsigned int) const {
+Triangulation<1>::begin_quad (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_quad_iterator
-Triangulation<1>::begin_active_quad (const unsigned int) const {
+Triangulation<1>::begin_active_quad (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_quad_iterator
-Triangulation<1>::end_quad () const {
+Triangulation<1>::end_quad () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_quad_iterator
-Triangulation<1>::last_raw_quad (const unsigned int) const {
+Triangulation<1>::last_raw_quad (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_quad_iterator
-Triangulation<1>::last_raw_quad () const {
+Triangulation<1>::last_raw_quad () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::quad_iterator
-Triangulation<1>::last_quad (const unsigned int) const {
+Triangulation<1>::last_quad (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::quad_iterator
-Triangulation<1>::last_quad () const {
+Triangulation<1>::last_quad () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_quad_iterator
-Triangulation<1>::last_active_quad (const unsigned int) const {
+Triangulation<1>::last_active_quad (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_quad_iterator
-Triangulation<1>::last_active_quad () const {
+Triangulation<1>::last_active_quad () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_hex_iterator
-Triangulation<1>::begin_raw_hex (const unsigned int) const {
+Triangulation<1>::begin_raw_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::hex_iterator
-Triangulation<1>::begin_hex (const unsigned int) const {
+Triangulation<1>::begin_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_hex_iterator
-Triangulation<1>::begin_active_hex (const unsigned int) const {
+Triangulation<1>::begin_active_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_hex_iterator
-Triangulation<1>::end_hex () const {
+Triangulation<1>::end_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_hex_iterator
-Triangulation<1>::last_raw_hex (const unsigned int) const {
+Triangulation<1>::last_raw_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::raw_hex_iterator
-Triangulation<1>::last_raw_hex () const {
+Triangulation<1>::last_raw_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::hex_iterator
-Triangulation<1>::last_hex (const unsigned int) const {
+Triangulation<1>::last_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::hex_iterator
-Triangulation<1>::last_hex () const {
+Triangulation<1>::last_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_hex_iterator
-Triangulation<1>::last_active_hex (const unsigned int) const {
+Triangulation<1>::last_active_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<1>::active_hex_iterator
-Triangulation<1>::last_active_hex () const {
+Triangulation<1>::last_active_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
template <>
TriaDimensionInfo<2>::raw_cell_iterator
-Triangulation<2>::begin_raw (const unsigned int level) const {
+Triangulation<2>::begin_raw (const unsigned int level) const
+{
return begin_raw_quad (level);
};
+
template <>
TriaDimensionInfo<2>::active_cell_iterator
-Triangulation<2>::begin_active (const unsigned int level) const {
+Triangulation<2>::begin_active (const unsigned int level) const
+{
return begin_active_quad (level);
};
+
template <>
TriaDimensionInfo<2>::raw_cell_iterator
-Triangulation<2>::last_raw () const {
+Triangulation<2>::last_raw () const
+{
return last_raw_quad ();
};
+
template <>
TriaDimensionInfo<2>::raw_cell_iterator
-Triangulation<2>::last_raw (const unsigned int level) const {
+Triangulation<2>::last_raw (const unsigned int level) const
+{
return last_raw_quad (level);
};
+
template <>
TriaDimensionInfo<2>::cell_iterator
-Triangulation<2>::last () const {
+Triangulation<2>::last () const
+{
return last_quad ();
};
+
template <>
TriaDimensionInfo<2>::cell_iterator
-Triangulation<2>::last (const unsigned int level) const {
+Triangulation<2>::last (const unsigned int level) const
+{
return last_quad (level);
};
+
template <>
TriaDimensionInfo<2>::active_cell_iterator
-Triangulation<2>::last_active () const {
+Triangulation<2>::last_active () const
+{
return last_active_quad ();
};
+
template <>
TriaDimensionInfo<2>::active_cell_iterator
-Triangulation<2>::last_active (const unsigned int level) const {
+Triangulation<2>::last_active (const unsigned int level) const
+{
return last_active_quad (level);
};
+
template <>
TriaDimensionInfo<2>::raw_face_iterator
-Triangulation<2>::begin_raw_face (const unsigned int level) const {
+Triangulation<2>::begin_raw_face (const unsigned int level) const
+{
return begin_raw_line (level);
};
+
template <>
TriaDimensionInfo<2>::face_iterator
-Triangulation<2>::begin_face (const unsigned int level) const {
+Triangulation<2>::begin_face (const unsigned int level) const
+{
return begin_line (level);
};
+
template <>
TriaDimensionInfo<2>::active_face_iterator
-Triangulation<2>::begin_active_face (const unsigned int level) const {
+Triangulation<2>::begin_active_face (const unsigned int level) const
+{
return begin_active_line (level);
};
+
template <>
TriaDimensionInfo<2>::raw_face_iterator
-Triangulation<2>::end_face () const {
+Triangulation<2>::end_face () const
+{
return end_line ();
};
+
template <>
TriaDimensionInfo<2>::raw_face_iterator
-Triangulation<2>::last_raw_face () const {
+Triangulation<2>::last_raw_face () const
+{
return last_raw_line ();
};
+
template <>
TriaDimensionInfo<2>::raw_face_iterator
-Triangulation<2>::last_raw_face (const unsigned int level) const {
+Triangulation<2>::last_raw_face (const unsigned int level) const
+{
return last_raw_line (level);
};
+
template <>
TriaDimensionInfo<2>::face_iterator
-Triangulation<2>::last_face () const {
+Triangulation<2>::last_face () const
+{
return last_line ();
};
+
template <>
TriaDimensionInfo<2>::face_iterator
-Triangulation<2>::last_face (const unsigned int level) const {
+Triangulation<2>::last_face (const unsigned int level) const
+{
return last_line (level);
};
+
template <>
TriaDimensionInfo<2>::active_face_iterator
-Triangulation<2>::last_active_face () const {
+Triangulation<2>::last_active_face () const
+{
return last_active_line ();
};
+
template <>
TriaDimensionInfo<2>::active_face_iterator
-Triangulation<2>::last_active_face (const unsigned int level) const {
+Triangulation<2>::last_active_face (const unsigned int level) const
+{
return last_active_line (level);
};
+
template <>
TriaDimensionInfo<2>::raw_hex_iterator
-Triangulation<2>::begin_raw_hex (const unsigned int) const {
+Triangulation<2>::begin_raw_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::hex_iterator
-Triangulation<2>::begin_hex (const unsigned int) const {
+Triangulation<2>::begin_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::active_hex_iterator
-Triangulation<2>::begin_active_hex (const unsigned int) const {
+Triangulation<2>::begin_active_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::raw_hex_iterator
-Triangulation<2>::end_hex () const {
+Triangulation<2>::end_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::raw_hex_iterator
-Triangulation<2>::last_raw_hex (const unsigned int) const {
+Triangulation<2>::last_raw_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::raw_hex_iterator
-Triangulation<2>::last_raw_hex () const {
+Triangulation<2>::last_raw_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::hex_iterator
-Triangulation<2>::last_hex (const unsigned int) const {
+Triangulation<2>::last_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::hex_iterator
-Triangulation<2>::last_hex () const {
+Triangulation<2>::last_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::active_hex_iterator
-Triangulation<2>::last_active_hex (const unsigned int) const {
+Triangulation<2>::last_active_hex (const unsigned int) const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
+
template <>
TriaDimensionInfo<2>::active_hex_iterator
-Triangulation<2>::last_active_hex () const {
+Triangulation<2>::last_active_hex () const
+{
Assert (false, ExcFunctionNotUseful());
return 0;
};
-
#endif
template <>
TriaDimensionInfo<3>::raw_cell_iterator
-Triangulation<3>::begin_raw (const unsigned int level) const {
+Triangulation<3>::begin_raw (const unsigned int level) const
+{
return begin_raw_hex (level);
};
+
template <>
TriaDimensionInfo<3>::active_cell_iterator
-Triangulation<3>::begin_active (const unsigned int level) const {
+Triangulation<3>::begin_active (const unsigned int level) const
+{
return begin_active_hex (level);
};
+
template <>
TriaDimensionInfo<3>::raw_cell_iterator
-Triangulation<3>::last_raw () const {
+Triangulation<3>::last_raw () const
+{
return last_raw_hex ();
};
+
template <>
TriaDimensionInfo<3>::raw_cell_iterator
-Triangulation<3>::last_raw (const unsigned int level) const {
+Triangulation<3>::last_raw (const unsigned int level) const
+{
return last_raw_hex (level);
};
+
template <>
TriaDimensionInfo<3>::cell_iterator
-Triangulation<3>::last () const {
+Triangulation<3>::last () const
+{
return last_hex ();
};
+
template <>
TriaDimensionInfo<3>::cell_iterator
-Triangulation<3>::last (const unsigned int level) const {
+Triangulation<3>::last (const unsigned int level) const
+{
return last_hex (level);
};
+
template <>
TriaDimensionInfo<3>::active_cell_iterator
-Triangulation<3>::last_active () const {
+Triangulation<3>::last_active () const
+{
return last_active_hex ();
};
+
template <>
TriaDimensionInfo<3>::active_cell_iterator
-Triangulation<3>::last_active (const unsigned int level) const {
+Triangulation<3>::last_active (const unsigned int level) const
+{
return last_active_hex (level);
};
+
template <>
TriaDimensionInfo<3>::raw_face_iterator
-Triangulation<3>::begin_raw_face (const unsigned int level) const {
+Triangulation<3>::begin_raw_face (const unsigned int level) const
+{
return begin_raw_quad (level);
};
+
template <>
TriaDimensionInfo<3>::face_iterator
-Triangulation<3>::begin_face (const unsigned int level) const {
+Triangulation<3>::begin_face (const unsigned int level) const
+{
return begin_quad (level);
};
+
template <>
TriaDimensionInfo<3>::active_face_iterator
-Triangulation<3>::begin_active_face (const unsigned int level) const {
+Triangulation<3>::begin_active_face (const unsigned int level) const
+{
return begin_active_quad (level);
};
+
template <>
TriaDimensionInfo<3>::raw_face_iterator
-Triangulation<3>::end_face () const {
+Triangulation<3>::end_face () const
+{
return end_quad ();
};
+
template <>
TriaDimensionInfo<3>::raw_face_iterator
-Triangulation<3>::last_raw_face () const {
+Triangulation<3>::last_raw_face () const
+{
return last_raw_quad ();
};
+
template <>
TriaDimensionInfo<3>::raw_face_iterator
-Triangulation<3>::last_raw_face (const unsigned int level) const {
+Triangulation<3>::last_raw_face (const unsigned int level) const
+{
return last_raw_quad (level);
};
+
template <>
TriaDimensionInfo<3>::face_iterator
-Triangulation<3>::last_face () const {
+Triangulation<3>::last_face () const
+{
return last_quad ();
};
+
template <>
TriaDimensionInfo<3>::face_iterator
-Triangulation<3>::last_face (const unsigned int level) const {
+Triangulation<3>::last_face (const unsigned int level) const
+{
return last_quad (level);
};
+
template <>
TriaDimensionInfo<3>::active_face_iterator
Triangulation<3>::last_active_face () const
};
+
template <>
TriaDimensionInfo<3>::active_face_iterator
Triangulation<3>::last_active_face (const unsigned int level) const
first_child->clear_children ();
first_child->set (Line (cell->vertex_index(0), next_unused_vertex));
first_child->set_material_id (cell->material_id());
+ first_child->set_subdomain_id (cell->subdomain_id());
// reset neighborship info
// (refer to \Ref{TriangulationLevel<0>}
second_child->set (Line (next_unused_vertex, cell->vertex_index(1)));
second_child->set_neighbor (0, first_child);
second_child->set_material_id (cell->material_id());
+ second_child->set_subdomain_id (cell->subdomain_id());
if (cell->neighbor(1).state() != valid)
second_child->set_neighbor (1, cell->neighbor(1));
else
subcells[1]->set_material_id (cell->material_id());
subcells[2]->set_material_id (cell->material_id());
subcells[3]->set_material_id (cell->material_id());
+
+ subcells[0]->set_subdomain_id (cell->subdomain_id());
+ subcells[1]->set_subdomain_id (cell->subdomain_id());
+ subcells[2]->set_subdomain_id (cell->subdomain_id());
+ subcells[3]->set_subdomain_id (cell->subdomain_id());
};
};
new_hexes[i]->clear_children();
// inherit material properties
new_hexes[i]->set_material_id (hex->material_id());
+ new_hexes[i]->set_subdomain_id (hex->subdomain_id());
};