typename DoFHandler<dim>::raw_line_iterator
DoFHandler<dim>::begin_raw_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return raw_line_iterator (tria,
- tria->begin_raw_line(level)->level(),
+ dim==1 ? tria->begin_raw_line(level)->level() : 0,
tria->begin_raw_line(level)->index(),
this);
}
typename DoFHandler<dim>::line_iterator
DoFHandler<dim>::begin_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return line_iterator (tria,
- tria->begin_line(level)->level(),
+ dim==1 ? tria->begin_line(level)->level() : 0,
tria->begin_line(level)->index(),
this);
}
typename DoFHandler<dim>::active_line_iterator
DoFHandler<dim>::begin_active_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return active_line_iterator (tria,
- tria->begin_active_line(level)->level(),
+ dim==1 ? tria->begin_active_line(level)->level() : 0,
tria->begin_active_line(level)->index(),
this);
}
typename DoFHandler<dim>::raw_quad_iterator
DoFHandler<dim>::begin_raw_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return raw_quad_iterator (tria,
- tria->begin_raw_quad(level)->level(),
+ dim==2 ? tria->begin_raw_quad(level)->level() : 0,
tria->begin_raw_quad(level)->index(),
this);
}
typename DoFHandler<dim>::quad_iterator
DoFHandler<dim>::begin_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return quad_iterator (tria,
- tria->begin_quad(level)->level(),
+ dim==2 ? tria->begin_quad(level)->level() : 0,
tria->begin_quad(level)->index(),
this);
}
typename DoFHandler<dim>::active_quad_iterator
DoFHandler<dim>::begin_active_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return active_quad_iterator (tria,
- tria->begin_active_quad(level)->level(),
+ dim==2 ? tria->begin_active_quad(level)->level() : 0,
tria->begin_active_quad(level)->index(),
this);
}
typename DoFHandler<dim>::raw_line_iterator
DoFHandler<dim>::begin_raw_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return raw_line_iterator (tria,
- tria->begin_raw_line(level)->level(),
+ dim==1 ? tria->begin_raw_line(level)->level() : 0,
tria->begin_raw_line(level)->index(),
this);
}
typename DoFHandler<dim>::line_iterator
DoFHandler<dim>::begin_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return line_iterator (tria,
- tria->begin_line(level)->level(),
+ dim==1 ? tria->begin_line(level)->level() : 0,
tria->begin_line(level)->index(),
this);
}
typename DoFHandler<dim>::active_line_iterator
DoFHandler<dim>::begin_active_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return active_line_iterator (tria,
- tria->begin_active_line(level)->level(),
+ dim==1 ? tria->begin_active_line(level)->level() : 0,
tria->begin_active_line(level)->index(),
this);
}
typename DoFHandler<dim>::raw_quad_iterator
DoFHandler<dim>::begin_raw_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return raw_quad_iterator (tria,
- tria->begin_raw_quad(level)->level(),
+ dim==2 ? tria->begin_raw_quad(level)->level() : 0,
tria->begin_raw_quad(level)->index(),
this);
}
typename DoFHandler<dim>::quad_iterator
DoFHandler<dim>::begin_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return quad_iterator (tria,
- tria->begin_quad(level)->level(),
+ dim==2 ? tria->begin_quad(level)->level() : 0,
tria->begin_quad(level)->index(),
this);
}
typename DoFHandler<dim>::active_quad_iterator
DoFHandler<dim>::begin_active_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return active_quad_iterator (tria,
- tria->begin_active_quad(level)->level(),
+ dim==2 ? tria->begin_active_quad(level)->level() : 0,
tria->begin_active_quad(level)->index(),
this);
}
typename MGDoFHandler<dim>::raw_line_iterator
MGDoFHandler<dim>::begin_raw_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return raw_line_iterator (this->tria,
- this->tria->begin_raw_line(level)->level(),
+ dim==1 ? this->tria->begin_raw_line(level)->level() : 0,
this->tria->begin_raw_line(level)->index(),
this);
}
typename MGDoFHandler<dim>::line_iterator
MGDoFHandler<dim>::begin_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return line_iterator (this->tria,
- this->tria->begin_line(level)->level(),
+ dim==1 ? this->tria->begin_line(level)->level() : 0,
this->tria->begin_line(level)->index(),
this);
}
typename MGDoFHandler<dim>::active_line_iterator
MGDoFHandler<dim>::begin_active_line (const unsigned int level) const
{
+ Assert (dim==1 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return active_line_iterator (this->tria,
- this->tria->begin_active_line(level)->level(),
+ dim==1 ? this->tria->begin_active_line(level)->level() : 0,
this->tria->begin_active_line(level)->index(),
this);
}
typename MGDoFHandler<dim>::raw_quad_iterator
MGDoFHandler<dim>::begin_raw_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return raw_quad_iterator (this->tria,
- this->tria->begin_raw_quad(level)->level(),
+ dim==2 ? this->tria->begin_raw_quad(level)->level() : 0,
this->tria->begin_raw_quad(level)->index(),
this);
}
typename MGDoFHandler<dim>::quad_iterator
MGDoFHandler<dim>::begin_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return quad_iterator (this->tria,
- this->tria->begin_quad(level)->level(),
+ dim==2 ? this->tria->begin_quad(level)->level() : 0,
this->tria->begin_quad(level)->index(),
this);
}
typename MGDoFHandler<dim>::active_quad_iterator
MGDoFHandler<dim>::begin_active_quad (const unsigned int level) const
{
+ Assert (dim==2 || level == 0,
+ typename Triangulation<dim>::ExcFacesHaveNoLevel());
return active_quad_iterator (this->tria,
- this->tria->begin_active_quad(level)->level(),
+ dim==2 ? this->tria->begin_active_quad(level)->level() : 0,
this->tria->begin_active_quad(level)->index(),
this);
}