Assert(
dim == structdim,
ExcMessage(
- "This function is intended to be used for DoFCellAccessor, i.e., dimension == structdim."));
+ "This function is intended to be used for DoFCellAccessor, i.e., "
+ "dimension == structdim."));
process_dof_indices(
accessor,
DoFCellAccessor<dimension_, space_dimension_, level_dof_access>::
get_mg_dof_indices(std::vector<types::global_dof_index> &dof_indices) const
{
+ Assert(this->dof_handler->mg_vertex_dofs.size() > 0,
+ ExcMessage("Multigrid DoF indices can only be accessed after "
+ "DoFHandler::distribute_mg_dofs() has been called!"));
DoFAccessor<dimension_, dimension_, space_dimension_, level_dof_access>::
get_mg_dof_indices(this->level(), dof_indices);
}
DoFCellAccessor<dimension_, space_dimension_, level_dof_access>::
set_mg_dof_indices(const std::vector<types::global_dof_index> &dof_indices)
{
+ Assert(this->dof_handler->mg_vertex_dofs.size() > 0,
+ ExcMessage("Multigrid DoF indices can only be accessed after "
+ "DoFHandler::distribute_mg_dofs() has been called!"));
DoFAccessor<dimension_, dimension_, space_dimension_, level_dof_access>::
set_mg_dof_indices(this->level(), dof_indices);
}
const auto &fe = this->dof_handler->get_fe(active_fe_index());
- Assert(
- this->reference_cell() == fe.reference_cell(),
- ExcMessage(
- "The reference-cell type of the cell does not match the one of the finite element!"));
+ Assert(this->reference_cell() == fe.reference_cell(),
+ ExcMessage(
+ "The reference-cell type of the cell does not match the one of the "
+ "finite element!"));
return fe;
}