virtual typename DoFHandler<dim>::cell_iterator
next_cell (const typename DoFHandler<dim>::cell_iterator &cell);
+ /**
+ * Exception
+ */
+ DeclException1 (ExcInvalidNumberOfSubdivisions,
+ int,
+ << "The number of subdivisions per patch, " << arg1
+ << ", is not valid.");
+
private:
/**
* All data needed in one thread
string,
<< "You tried to declare a component of a data vector with "
<< "the name <" << arg1 << ">, but that name is already used.");
+ /**
+ * Exception
+ */
+ DeclException1 (ExcInvalidNumberOfSubdivisions,
+ int,
+ << "The number of subdivisions per patch, " << arg1
+ << ", is not valid.");
private:
/**
void DataOut<dim>::build_patches (const unsigned int n_subdivisions,
const unsigned int n_threads_)
{
+ Assert (n_subdivisions >= 1,
+ ExcInvalidNumberOfSubdivisions(n_subdivisions));
+
Assert (dofs != 0, typename DataOut_DoFData<dim>::ExcNoDoFHandlerSelected());
#ifdef DEAL_II_USE_MT
{
// this is mostly copied from the
// DataOut class
-
+ Assert (n_subdivisions >= 1,
+ ExcInvalidNumberOfSubdivisions(n_subdivisions));
Assert (dof_handler != 0, ExcNoDoFHandlerSelected());
const unsigned int n_components = dof_handler->get_fe().n_components();
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams