*/
void load_user_flags (const std::vector<bool> &v);
- /**
+ /**
+ * Clear all user flags on lines.
+ */
+ void clear_user_flags_line ();
+
+ /**
* Save the user flags on lines.
*/
void save_user_flags_line (std::ostream &out) const;
*/
void load_user_flags_line (const std::vector<bool> &v);
+ /**
+ * Clear all user flags on quads.
+ */
+ void clear_user_flags_quad ();
+
/**
* Save the user flags on quads.
*/
*/
void load_user_flags_quad (const std::vector<bool> &v);
- /**
+
+ /**
+ * Clear all user flags on quads.
+ */
+ void clear_user_flags_hex ();
+
+ /**
* Save the user flags on hexs.
*/
void save_user_flags_hex (std::ostream &out) const;
template <> void Triangulation<2>::clear_user_flags ();
template <> void Triangulation<3>::clear_user_pointers ();
template <> void Triangulation<3>::clear_user_flags ();
+template <> void Triangulation<1>::clear_user_flags_quad ();
template <> void Triangulation<1>::save_user_flags_quad (std::ostream &) const;
template <> void Triangulation<1>::save_user_flags_quad (std::vector<bool> &) const;
template <> void Triangulation<1>::load_user_flags_quad (std::istream &);
template <> void Triangulation<1>::load_user_flags_quad (const std::vector<bool> &);
+template <> void Triangulation<1>::clear_user_flags_hex ();
template <> void Triangulation<1>::save_user_flags_hex (std::ostream &) const;
template <> void Triangulation<1>::save_user_flags_hex (std::vector<bool> &) const;
template <> void Triangulation<1>::load_user_flags_hex (std::istream &);
template <> void Triangulation<1>::load_user_flags_hex (const std::vector<bool> &);
+template <> void Triangulation<2>::clear_user_flags_hex ();
template <> void Triangulation<2>::save_user_flags_hex (std::ostream &) const;
template <> void Triangulation<2>::save_user_flags_hex (std::vector<bool> &) const;
template <> void Triangulation<2>::load_user_flags_hex (std::istream &);
template <>
void Triangulation<1>::clear_user_flags ()
{
- cell_iterator cell = begin(),
- endc = end();
- for (; cell!=endc; ++cell)
- cell->clear_user_flag ();
+ clear_user_flags_line();
}
+
+
+template <>
+void Triangulation<1>::clear_user_flags_quad ()
+{}
+
+
+template <>
+void Triangulation<1>::clear_user_flags_hex ()
+{}
+
+
#endif
template <>
void Triangulation<2>::clear_user_flags ()
{
- line_iterator line = begin_line(),
- endl = end_line();
- for (; line!=endl; ++line)
- line->clear_user_flag ();
-
- cell_iterator cell = begin(),
- endc = end();
- for (; cell!=endc; ++cell)
- cell->clear_user_flag ();
+ clear_user_flags_line ();
+ clear_user_flags_quad ();
}
+
+template <>
+void Triangulation<2>::clear_user_flags_hex ()
+{}
+
+
#endif
template <>
void Triangulation<3>::clear_user_flags ()
+{
+ clear_user_flags_line ();
+ clear_user_flags_quad ();
+ clear_user_flags_hex ();
+}
+
+
+
+#endif
+
+
+template <int dim>
+void Triangulation<dim>::clear_user_flags_line ()
{
line_iterator line = begin_line(),
endl = end_line();
for (; line!=endl; ++line)
line->clear_user_flag ();
+}
+
+
+template <int dim>
+void Triangulation<dim>::clear_user_flags_quad ()
+{
quad_iterator quad = begin_quad(),
endq = end_quad();
for (; quad!=endq; ++quad)
quad->clear_user_flag ();
-
- cell_iterator cell = begin(),
- endc = end();
- for (; cell!=endc; ++cell)
- cell->clear_user_flag ();
}
-#endif
+
+template <int dim>
+void Triangulation<dim>::clear_user_flags_hex ()
+{
+ hex_iterator hex = begin_hex(),
+ endh = end_hex();
+ for (; hex!=endh; ++hex)
+ hex->clear_user_flag ();
+}
+
template <int dim>
<h3>deal.II</h3>
<ol>
+ <li> <p>
+ New: The functions <code>Triangulation::clear_user_flags_line</code>,
+ <code>Triangulation::clear_user_flags_quad</code>, and
+ <code>Triangulation::clear_user_flags_hex</code> can be used to
+ selectively clear only some of the user flags as needed.
+ <br>
+ (WB 2006/04/25)
+ </p>
+
<li> <p>
New: The function <code>VectorTools::project</code> functions can now
also be used for vector arguments of type other than