* @ref GlossBoundaryIndicator "Glossary entry on boundary indicators"
*/
void
- set_boundary_id(const types::boundary_id);
+ set_boundary_id(const types::boundary_id) const;
/**
* Set the manifold indicator of this vertex. This does nothing so far since
* @ref GlossBoundaryIndicator "Glossary entry on boundary indicators"
*/
void
- set_all_boundary_ids(const types::boundary_id);
+ set_all_boundary_ids(const types::boundary_id) const;
/**
* Set the manifold indicator of this object and all of its lower-
template <int spacedim>
inline void
-TriaAccessor<0, 1, spacedim>::set_boundary_id(const types::boundary_id b)
+TriaAccessor<0, 1, spacedim>::set_boundary_id(const types::boundary_id b) const
{
Assert(tria->vertex_to_boundary_id_map_1d->find(this->vertex_index()) !=
tria->vertex_to_boundary_id_map_1d->end(),
- ExcInternalError());
+ ExcMessage("You can't set the boundary_id of a face of a cell that is "
+ "not actually at the boundary."));
(*tria->vertex_to_boundary_id_map_1d)[this->vertex_index()] = b;
}
template <int spacedim>
inline void
-TriaAccessor<0, 1, spacedim>::set_all_boundary_ids(const types::boundary_id b)
+TriaAccessor<0, 1, spacedim>::set_all_boundary_ids(
+ const types::boundary_id b) const
{
set_boundary_id(b);
}