template <int dim>
unsigned int Triangulation<dim>::n_raw_lines (const unsigned int level) const
{
- Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+ Assert(level < n_levels(), ExcIndexRange(level,0,n_levels()));
return levels[level]->lines.lines.size();
}
}
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
+template <>
+unsigned int Triangulation<1>::n_raw_quads (const unsigned int) const
{
return 0;
}
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
+template <>
+unsigned int Triangulation<1>::n_raw_hexs (const unsigned int) const
{
return 0;
}
template <int dim>
unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
{
- Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+ Assert(level < n_levels(), ExcIndexRange(level,0,n_levels()));
return levels[level]->quads.quads.size();
}
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
-{
- return 0;
-}
-
-
template <int dim>
unsigned int Triangulation<dim>::n_active_quads () const {
return number_cache.n_active_quads;
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int) const
+{
+ return 0;
+}
+
+
template <int dim>
unsigned int Triangulation<dim>::n_active_hexs () const
{
-template <int dim>
-unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
-{
- Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
- return levels[level]->quads.quads.size();
-}
-
-
template <int dim>
unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
{
- Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
- return levels[level]->hexs.hexs.size();
+ Assert(level < n_levels(), ExcIndexRange(level,0,n_levels()));
+ return levels[level]->hexes.hexes.size();
}