]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion to provide a nicer error message. 5340/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 13:50:05 +0000 (07:50 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 13:50:05 +0000 (07:50 -0600)
source/dofs/dof_renumbering.cc

index 2788416f46d88a3568f9b3d6c429ff0ccf3a9bfe..71faad5b405b32071fded873a7bde8b140d88ba7 100644 (file)
@@ -1512,6 +1512,11 @@ namespace DoFRenumbering
    const Tensor<1,DoFHandlerType::space_dimension> &direction,
    const bool                                       dof_wise_renumbering)
   {
+    Assert ((dynamic_cast<const parallel::Triangulation<DoFHandlerType::dimension,DoFHandlerType::space_dimension>*>
+             (&dof.get_triangulation())
+             == nullptr),
+            ExcNotImplemented());
+
     if (dof_wise_renumbering == false)
       {
         std::vector<typename DoFHandlerType::active_cell_iterator> ordered_cells;

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


Typeset in Trocchi and Trocchi Bold Sans Serif.