(std::vector<types::global_dof_index> &dof_indices,
const unsigned int fe_index) const
{
- Assert (this->dof_handler != nullptr, ExcNotInitialized());
+ Assert (this->dof_handler != nullptr,
+ ExcMessage("This accessor object has not been associated "
+ "with any DoFHandler object."));
Assert (static_cast<unsigned int>(this->level()) < this->dof_handler->levels.size(),
- ExcMessage ("DoFHandler not initialized"));
+ ExcMessage ("The DoFHandler to which this accessor points has not "
+ "been initialized, i.e., it doesn't appear that DoF indices "
+ "have been distributed on it."));
switch (structdim)
{
const Triangulation<dim,spacedim> &
DoFHandler<dim,spacedim>::get_triangulation () const
{
- Assert(tria != nullptr, ExcNotInitialized());
+ Assert(tria != nullptr,
+ ExcMessage("This DoFHandler object has not been associated "
+ "with a triangulation."));
return *tria;
}
* @}
*/
+
+
+ /**
+ * Exception
+ *
+ * @ingroup Exceptions
+ */
+ DeclExceptionMsg (ExcDoFHandlerNotInitialized,
+ "The DoFHandler on which this function should work has not "
+ "been initialized, i.e., it doesn't appear that DoF indices "
+ "have been distributed on it.");
+
/**
* Exception
*
* @ingroup Exceptions
*/
DeclException0 (ExcRenumberingIncomplete);
+
/**
* Exception
*
* @ingroup Exceptions
*/
DeclException0 (ExcInvalidComponentOrder);
+
/**
* The function is only implemented for Discontinuous Galerkin Finite
* elements.
const std::vector<types::global_dof_index> &starting_indices)
{
Assert(dof_handler.n_dofs(level) != numbers::invalid_dof_index,
- ExcNotInitialized());
+ ExcDoFHandlerNotInitialized());
// make the connection graph
DynamicSparsityPattern dsp (dof_handler.n_dofs(level),
const std::vector<unsigned int> &component_order_arg)
{
Assert(dof_handler.n_dofs(level) != numbers::invalid_dof_index,
- ExcNotInitialized());
+ ExcDoFHandlerNotInitialized());
std::vector<types::global_dof_index> renumbering (dof_handler.n_dofs(level),
numbers::invalid_dof_index);
block_wise (DoFHandler<dim,spacedim> &dof_handler, const unsigned int level)
{
Assert(dof_handler.n_dofs(level) != numbers::invalid_dof_index,
- ExcNotInitialized());
+ ExcDoFHandlerNotInitialized());
std::vector<types::global_dof_index> renumbering (dof_handler.n_dofs(level),
numbers::invalid_dof_index);
const unsigned int level)
{
Assert(dof_handler.n_dofs(level) != numbers::invalid_dof_index,
- ExcNotInitialized());
+ ExcDoFHandlerNotInitialized());
std::vector<types::global_dof_index> renumbering(dof_handler.n_dofs(level),
numbers::invalid_dof_index);
const unsigned int level)
{
Assert(dof_handler.n_dofs(level) != numbers::invalid_dof_index,
- ExcNotInitialized());
+ ExcDoFHandlerNotInitialized());
const unsigned int n_dofs = dof_handler.n_dofs(level);
Assert (selected_dofs.size() == n_dofs,
const typename std::vector<typename DoFHandlerType::level_cell_iterator> &cells)
{
Assert(dof.n_dofs(level) != numbers::invalid_dof_index,
- ExcNotInitialized());
+ ExcDoFHandlerNotInitialized());
std::vector<types::global_dof_index> renumbering(dof.n_dofs(level));
std::vector<types::global_dof_index> reverse(dof.n_dofs(level));